Browse Source

remove bash_profile.sh for web-simple

Lita Gratrix 10 years ago
parent
commit
7da437b82a

+ 0 - 5
frameworks/Perl/web-simple/bash_profile.sh

@@ -1,5 +0,0 @@
-#!/bin/bash
-
-export PERL_HOME=${IROOT}/perl-5.18
-export NGINX_HOME=${IROOT}/nginx
-

+ 3 - 0
frameworks/Perl/web-simple/install.sh

@@ -1,4 +1,7 @@
 #!/bin/bash
+export PERL_HOME=${IROOT}/perl-5.18
 
 fw_depends perl nginx
 
+${PERL_HOME}/bin/cpanm --notest --no-man-page Web::Simple DBI DBD::mysql Plack Starman JSON::XS
+echo installed Web::Simple app dependencies

+ 2 - 3
frameworks/Perl/web-simple/setup.sh

@@ -1,12 +1,11 @@
 #!/bin/bash
+export PERL_HOME=${IROOT}/perl-5.18
+export NGINX_HOME=${IROOT}/nginx
 
 sed -i 's|localhost|'"${DBHOST}"'|g' app.pl
 sed -i 's|server unix:.*/FrameworkBenchmarks/web-simple|server unix:'"${TROOT}"'|g' nginx.conf
 
 export PATH="$PERL_HOME/bin:$PATH"
 
-cpanm --notest --no-man-page Web::Simple DBI DBD::mysql Plack Starman JSON::XS
-echo installed Web::Simple app dependencies
-
 plackup -E production -s Starman --workers=${MAX_THREADS} -l $TROOT/frameworks-benchmark.sock -a $TROOT/app.pl &
 $NGINX_HOME/sbin/nginx -c $TROOT/nginx.conf