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
|
|
@ -1,5 +1,9 @@
|
||||||
rails_env=$1
|
rails_env=$1
|
||||||
if [ -z $rails_env ]; then
|
if [ -z $rails_env ]; then
|
||||||
rails_env=development
|
rails_env=development
|
||||||
fi
|
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