Commit 0ddc903e authored by priit's avatar priit

Dockeri alge

parent bb02ec2a
...@@ -11,7 +11,7 @@ RUN apt-get update && \ ...@@ -11,7 +11,7 @@ RUN apt-get update && \
apt-get -y install curl && \ apt-get -y install curl && \
curl -sL https://deb.nodesource.com/setup | sudo bash - && \ curl -sL https://deb.nodesource.com/setup | sudo bash - && \
apt-get -y install python build-essential nodejs && \ apt-get -y install python build-essential nodejs && \
apt-get -y install git apt-get -y install git && echo "Installed"
RUN npm install -g forever RUN npm install -g forever
......
...@@ -10,4 +10,5 @@ if [ ! -f /src/config.js ]; then ...@@ -10,4 +10,5 @@ if [ ! -f /src/config.js ]; then
cp -R -u -p /src/config_dist.js /src/config.js cp -R -u -p /src/config_dist.js /src/config.js
fi fi
forever /src/app.js forever start /src/app.js
\ No newline at end of file top
\ No newline at end of file
...@@ -8,6 +8,6 @@ if [ -f /config/config.js ]; then ...@@ -8,6 +8,6 @@ if [ -f /config/config.js ]; then
cp /config/config.js /src/config.js cp /config/config.js /src/config.js
fi fi
forever stopall forever restartall
forever /src/app.js forever list
forever list top
\ No newline at end of file \ No newline at end of file
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