Commit e3c3aa26 authored by priit's avatar priit
Browse files

docker kirjeldus

parent dbce44e2
...@@ -11,7 +11,7 @@ RUN apt-get update && \ ...@@ -11,7 +11,7 @@ RUN apt-get update && \
apt-get -y install curl sudo && \ apt-get -y install curl sudo && \
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 && echo "Installed" apt-get -y install git && echo "Installed 2"
RUN npm install -g forever RUN npm install -g forever
......
#!/bin/bash #!/bin/bash
cd /src
git pull
npm install
if [ ! -f /config/config.js ]; then if [ ! -f /config/config.js ]; then
cp -R -u -p /src/config_dist.js /config/config.js cp -R -u -p /src/config_dist.js /config/config.js
fi fi
...@@ -12,6 +16,7 @@ if [ ! -f /src/config.js ]; then ...@@ -12,6 +16,7 @@ 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 start /src/app.js forever start -l /forever.log /src/app.js
forever list forever list
tail
\ No newline at end of file tail -f /forever.log
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