add app: e11sync-gunicorn
This commit is contained in:
parent
af7647dd95
commit
fd7cbc93a4
28
flake.nix
28
flake.nix
@ -57,7 +57,7 @@
|
||||
cp ${geoip2-country} $out/GeoLite2-Country.mmdb
|
||||
'';
|
||||
};
|
||||
in {
|
||||
in rec {
|
||||
packages.e11sync-static = pkgs.stdenv.mkDerivation {
|
||||
name = "e11sync-static";
|
||||
src = self;
|
||||
@ -82,16 +82,22 @@
|
||||
src = self;
|
||||
dontUnpack = true;
|
||||
buildPhase = ''
|
||||
mkdir -p $out;
|
||||
cp -r ${self}/app $out
|
||||
makeWrapper ${pkgs.python3Packages.gunicorn}/bin/gunicorn $out/bin/entrypoint \
|
||||
--chdir $out/app \
|
||||
--set E11SYNC_DEBUG "" \
|
||||
--set E11SYNC_COMPRESS_OFFLINE 1 \
|
||||
--set GEOIP_PATH "${geoip}" \
|
||||
--add-flags e11sync.wsgi \
|
||||
--add-flags --bind=127.0.0.1:${toString gunicornPort}
|
||||
'';
|
||||
mkdir -p $out;
|
||||
cp -r ${self}/app $out
|
||||
makeWrapper ${pkgs.python3Packages.gunicorn}/bin/gunicorn $out/bin/entrypoint \
|
||||
--chdir $out/app \
|
||||
--set E11SYNC_DEBUG "" \
|
||||
--set E11SYNC_COMPRESS_OFFLINE 1 \
|
||||
--set GEOIP_PATH "${geoip}" \
|
||||
--add-flags e11sync.wsgi \
|
||||
--add-flags --bind=127.0.0.1:${toString gunicornPort}
|
||||
'';
|
||||
};
|
||||
|
||||
apps.e11sync-gunicorn = {
|
||||
type = "app";
|
||||
name = "e11sync-gunicorn";
|
||||
program = "${packages.e11sync-gunicorn}/bin/entrypoint";
|
||||
};
|
||||
|
||||
devShells.default = pkgs.mkShellNoCC {
|
||||
|
Loading…
Reference in New Issue
Block a user