Update start_site.sh and init_web.sh
This commit is contained in:
parent
da582d4f95
commit
de94765169
|
@ -1 +1 @@
|
|||
sudo service nginx restart && sudo service mongod restart && ./start_site.sh $1 && curl localhost
|
||||
sudo service nginx restart && sudo service mongod restart && ./start_site.sh $1 $2 $3 $4 && curl localhost
|
|
@ -2,4 +2,8 @@ rails_env=$1
|
|||
if [ -z $rails_env ]; then
|
||||
rails_env=development
|
||||
fi
|
||||
bundle exec unicorn_rails -c config/unicorn.rb -D -E $rails_env
|
||||
daemon_args=""
|
||||
if [[ "$2" != "-ND" ]]; then
|
||||
daemon_args="-D"
|
||||
fi
|
||||
bundle exec unicorn_rails -c config/unicorn.rb -E $rails_env $daemon_args $3 "$4"
|
Loading…
Reference in New Issue