diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-18 16:10:56 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-20 01:51:48 +0200 |
commit | d3452fc59b9839846225fd254926c64a9c71f071 (patch) | |
tree | a98a0958b826ac4b2ab137720edf0195c65dd958 /pkgs/private/webapps/tellesflorian/default.nix | |
parent | 514f9ec3beec470c4445be690673a0ceab9115b4 (diff) | |
download | Nix-d3452fc59b9839846225fd254926c64a9c71f071.tar.gz Nix-d3452fc59b9839846225fd254926c64a9c71f071.tar.zst Nix-d3452fc59b9839846225fd254926c64a9c71f071.zip |
Refactor websites
Diffstat (limited to 'pkgs/private/webapps/tellesflorian/default.nix')
-rw-r--r-- | pkgs/private/webapps/tellesflorian/default.nix | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pkgs/private/webapps/tellesflorian/default.nix b/pkgs/private/webapps/tellesflorian/default.nix deleted file mode 100644 index b1ccb98..0000000 --- a/pkgs/private/webapps/tellesflorian/default.nix +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | { environment ? "prod" | ||
2 | , varDir ? "/var/lib/tellesflorian_${environment}" | ||
3 | , composerEnv, fetchurl, mylibs }: | ||
4 | let | ||
5 | app = composerEnv.buildPackage ( | ||
6 | import ./php-packages.nix { inherit composerEnv fetchurl; } // | ||
7 | mylibs.fetchedGitPrivate ./tellesflorian.json // | ||
8 | rec { | ||
9 | noDev = (environment == "prod"); | ||
10 | preInstall = '' | ||
11 | export SYMFONY_ENV="${environment}" | ||
12 | ''; | ||
13 | postInstall = '' | ||
14 | cd $out | ||
15 | rm app/config/parameters.yml | ||
16 | ln -sf /var/secrets/webapps/${environment}-tellesflorian app/config/parameters.yml | ||
17 | rm -rf var/{logs,cache} | ||
18 | ln -sf ${varDir}/var/{logs,cache,sessions} var/ | ||
19 | ''; | ||
20 | passthru = { | ||
21 | inherit varDir environment; | ||
22 | webRoot = "${app}/web"; | ||
23 | }; | ||
24 | }); | ||
25 | in app | ||