From 64276f815fb0d5cd83c089fc12e42e0ad2f8b16f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 11 Mar 2014 10:24:46 +0100 Subject: [PATCH] Removed not longer used thin commands. --- script/local_browser_tests.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/script/local_browser_tests.sh b/script/local_browser_tests.sh index c5e16d82e..53cfa6ca5 100755 --- a/script/local_browser_tests.sh +++ b/script/local_browser_tests.sh @@ -25,11 +25,15 @@ rake db:create rake db:migrate rake db:seed -#thin stop +# modify production.rb to serve assets +cat config/environments/production.rb | sed -e 's/config.serve_static_assets = false/config.serve_static_assets = true/' > /tmp/production.rb && cp /tmp/production.rb config/environments/production.rb + +# mofidy auth backend +cat lib/auth/test.rb | sed 's/development/production/' > /tmp/test.rb && cp /tmp/test.rb lib/auth/test.rb + pumactl --pidfile tmp/pids/puma.pid stop script/websocket-server.rb stop -#thin start --threaded -d -p 4444 pumactl start --pidfile tmp/pids/puma.pid -d -p 4444 -e $RAILS_ENV script/websocket-server.rb start -d @@ -43,7 +47,6 @@ rake test:browser["BROWSER_URL=http://localhost:4444"] script/websocket-server.rb stop pumactl --pidfile tmp/pids/puma.pid stop -#thin stop rm -f public/assets/*.css* rm -f public/assets/*.js*