2 , varDir ? "/var/lib/tellesflorian_${environment}"
3 , secretsPath ? "/var/secrets/webapps/${environment}-tellesflorian"
4 , composerEnv, fetchurl, mylibs }:
6 app = composerEnv.buildPackage (
7 import ./php-packages.nix { inherit composerEnv fetchurl; } //
8 mylibs.fetchedGitPrivate ./tellesflorian.json //
10 noDev = (environment == "prod");
12 export SYMFONY_ENV="${environment}"
16 rm app/config/parameters.yml
17 ln -sf ${secretsPath} app/config/parameters.yml
18 rm -rf var/{logs,cache}
19 ln -sf ${varDir}/var/{logs,cache,sessions} var/
22 inherit varDir environment;
23 webRoot = "${app}/web";