Commit 338d9f03 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

GenieACS needs production node_modules

parent d4d336b3
......@@ -9,6 +9,7 @@ all: acs-cwmp-service acs-fs-service acs-nbi-service acs-ui-service genieacs-con
cd genieacs-1.2.5 && NODE_OPTIONS="--max-old-space-size=3072" npm run build
mv genieacs-1.2.5/dist /srv/genieacs
cd /srv/genieacs && npm install --production
@echo "$$GENIEACS_CONFIG" > /etc/config/genieacs
@echo "$$GENIEACS_LOGROTATE" > /etc/logrotate.d/genieacs
install -v -Dm755 genieacs /usr/share/easycwmp/functions
......@@ -34,6 +35,7 @@ define ACS_CWMP_SERVICE
Description=GenieACS CWMP
[Service]
Environment="NODE_PATH=/srv/genieacs/node_modules"
ConditionFileNotEmpty=/run/genieacs/config.env
Restart=always
ExecStartPre=/usr/sbin/genieacs-init
......@@ -50,6 +52,7 @@ define ACS_FS_SERVICE
Description=GenieACS file system
[Service]
Environment="NODE_PATH=/srv/genieacs/node_modules"
ConditionFileNotEmpty=/run/genieacs/config.env
Restart=always
ExecStartPre=/usr/sbin/genieacs-init
......@@ -66,6 +69,7 @@ define ACS_NBI_SERVICE
Description=GenieACS north bound interface
[Service]
Environment="NODE_PATH=/srv/genieacs/node_modules"
ConditionFileNotEmpty=/run/genieacs/config.env
Restart=always
ExecStartPre=/usr/sbin/genieacs-init
......@@ -82,6 +86,7 @@ define ACS_UI_SERVICE
Description=GenieACS user interface
[Service]
Environment="NODE_PATH=/srv/genieacs/node_modules"
ConditionFileNotEmpty=/run/genieacs/config.env
Restart=always
ExecStartPre=/usr/sbin/genieacs-init
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment