Skip to content

Commit

Permalink
copy server conf everytime
Browse files Browse the repository at this point in the history
  • Loading branch information
remstef committed Nov 7, 2016
1 parent 39f58bc commit 06932da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Docker/build_and_run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ docker build . -t moviecharacterinsight:demo

docker run -d -p ${1:-8181}:80 --name moviecharacterinsights moviecharacterinsight:demo

docker cp server.user.conf moviecharacterinsights:/Server/

docker logs -f moviecharacterinsights
5 changes: 4 additions & 1 deletion Docker/startup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
echo "starting in 5 seconds, please copy server.user.conf now"
sleep 5
nginx
mongod -f /etc/mongod.conf --fork --logappend --logpath /logs/mongod.log

Expand All @@ -10,6 +12,7 @@ ps aux | grep mongod
echo "nginx started?"
ps aux | grep nginx

# echo "Starting app"
echo "Starting app"
cat /Server/server.user.conf
cd /Server/app
node app.js

0 comments on commit 06932da

Please sign in to comment.