Skip to content
Snippets Groups Projects
Commit 80a508e6 authored by Iain Bryson's avatar Iain Bryson
Browse files

User foreverjs to restart getpdf server.

parent b7fa952b
Branches
Tags
No related merge requests found
...@@ -44,10 +44,10 @@ ENV NODE_VERSION --lts ...@@ -44,10 +44,10 @@ ENV NODE_VERSION --lts
RUN . $NVM_DIR/nvm.sh \ RUN . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \ && nvm install $NODE_VERSION \
# && nvm alias default $NODE_VERSION \
&& nvm use default \ && nvm use default \
&& npm install \ && npm install \
&& npm run build && npm run build \
&& npm install forever -g
WORKDIR . WORKDIR .
......
...@@ -6,6 +6,6 @@ pushd /getpdf-server ...@@ -6,6 +6,6 @@ pushd /getpdf-server
sleep 10 sleep 10
NODE_ENV=production npm run start & NODE_ENV=production forever --minUptime 1000 --spinSleepTime 10000 start -o ~/getpdf_server_out.log -e ~/getpdf_server_err.log dist/index.js &
/usr/sbin/sshd -D /usr/sbin/sshd -D
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment