Browse Source

Updated padrino

Mike Smith 10 years ago
parent
commit
fbf5425c10

+ 1 - 4
frameworks/Ruby/padrino/bash_profile.sh

@@ -2,8 +2,5 @@
 
 export LC_ALL=en_US.UTF-8 
 export LANG=en_US.UTF-8
-# We assume single-user installation as 
-# done in our rvm.sh script and 
-# in Travis-CI
-source $HOME/.rvm/scripts/rvm
 
+export NGINX_HOME=${IROOT}/nginx

+ 8 - 0
frameworks/Ruby/padrino/run_jruby_puma.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# We assume single-user installation as 
+# done in our rvm.sh script and 
+# in Travis-CI
+source $HOME/.rvm/scripts/rvm
+
+DB_HOST=${DBHOST} rvm jruby-1.7.8 do bundle exec puma -C config/puma.rb &

+ 8 - 0
frameworks/Ruby/padrino/run_mri_puma.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# We assume single-user installation as 
+# done in our rvm.sh script and 
+# in Travis-CI
+source $HOME/.rvm/scripts/rvm
+
+DB_HOST=${DBHOST} rvm ruby-2.0.0-p0 do bundle exec puma -C config/puma.rb -w 8 --preload &

+ 8 - 0
frameworks/Ruby/padrino/run_rbx_puma.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# We assume single-user installation as 
+# done in our rvm.sh script and 
+# in Travis-CI
+source $HOME/.rvm/scripts/rvm
+
+DB_HOST=${DBHOST} rvm rbx-2.2.10 do bundle exec puma &

+ 8 - 0
frameworks/Ruby/padrino/run_thin.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# We assume single-user installation as 
+# done in our rvm.sh script and 
+# in Travis-CI
+source $HOME/.rvm/scripts/rvm
+
+DB_HOST=${DBHOST} rvm ruby-2.0.0-p0 do bundle exec thin start -C config/thin.yml &

+ 8 - 0
frameworks/Ruby/padrino/run_torqbox.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# We assume single-user installation as 
+# done in our rvm.sh script and 
+# in Travis-CI
+source $HOME/.rvm/scripts/rvm
+
+DB_HOST=${DBHOST} rvm jruby-1.7.8 do bundle exec torqbox -b 0.0.0.0 -E production &

+ 8 - 0
frameworks/Ruby/padrino/run_trinidad.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# We assume single-user installation as 
+# done in our rvm.sh script and 
+# in Travis-CI
+source $HOME/.rvm/scripts/rvm
+
+DB_HOST=${DBHOST} rvm jruby-1.7.8 do bundle exec trinidad --config config/trinidad.yml &

+ 10 - 0
frameworks/Ruby/padrino/run_unicorn.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# We assume single-user installation as 
+# done in our rvm.sh script and 
+# in Travis-CI
+source $HOME/.rvm/scripts/rvm
+
+$NGINX_HOME/sbin/nginx -c $TROOT/config/nginx.conf
+
+DB_HOST=${DBHOST} rvm ruby-2.0.0-p0 do bundle exec unicorn -E production -c config/unicorn.rb &