Use the WorkingDir parameter
This commit is contained in:
parent
8db9509777
commit
32e0407ea0
|
@ -131,7 +131,6 @@
|
||||||
pkgs.inventoryEnv
|
pkgs.inventoryEnv
|
||||||
inventory
|
inventory
|
||||||
(pkgs.writeShellScriptBin "start-inventory" ''
|
(pkgs.writeShellScriptBin "start-inventory" ''
|
||||||
cd /code
|
|
||||||
if [ -f .second_run ]; then
|
if [ -f .second_run ]; then
|
||||||
sleep 2
|
sleep 2
|
||||||
${pkgs.python3}/bin/python manage.py collectstatic --noinput
|
${pkgs.python3}/bin/python manage.py collectstatic --noinput
|
||||||
|
@ -165,6 +164,7 @@
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
Cmd = [ "start-inventory" ];
|
Cmd = [ "start-inventory" ];
|
||||||
|
WorkingDir = "/code";
|
||||||
Env = [
|
Env = [
|
||||||
"POSTGRES_DB=network_inventory"
|
"POSTGRES_DB=network_inventory"
|
||||||
"DJANGO_SETTINGS_MODULE=network_inventory.settings.production"
|
"DJANGO_SETTINGS_MODULE=network_inventory.settings.production"
|
||||||
|
|
Loading…
Reference in New Issue