File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 8
8
exit 1
9
9
fi
10
10
11
- check_message=" start application w/ ${app_lang} ..."
12
-
13
11
echo " app_lang: $app_lang "
14
12
15
13
function run_ruby() {
14
+ cd " /home/ishocon/webapp/$app_lang "
16
15
bundle install
17
16
unicorn -c unicorn_config.rb
18
- echo " $check_message "
17
+ echo $check_message
19
18
}
20
19
21
20
function run_python() {
21
+ cd " /home/ishocon/webapp/$app_lang "
22
22
/home/ishocon/.pyenv/shims/uwsgi --ini app.ini
23
- echo " $check_message "
24
23
}
25
24
26
25
function run_python_sanic() {
27
- /home/ishocon/.pyenv/shims/uwsgi --ini app.ini
28
- echo " $check_message "
26
+ cd " /home/ishocon/webapp/ ${app_lang} _sanic "
27
+ /home/ishocon/.pyenv/shims/uwsgi --ini " app.ini "
29
28
}
30
29
31
30
32
31
function run_go() {
32
+ cd " /home/ishocon/webapp/$app_lang "
33
33
go get -t -d -v ./...
34
34
go build -o webapp * .go
35
35
./webapp
36
- echo " $check_message "
37
36
}
38
37
39
38
function run_php() {
39
+ cd " /home/ishocon/webapp/$app_lang "
40
40
sudo mv -f /etc/nginx/nginx.conf /etc/nginx/nginx.conf.orig
41
41
sudo cp webapp/php/php-nginx.conf /etc/nginx/nginx.conf
42
42
sudo service nginx reload
43
- echo " $check_message "
44
43
}
45
44
46
45
function run_crystal() {
46
+ cd " /home/ishocon/webapp/$app_lang "
47
47
shards install
48
48
crystal app.cr
49
- echo " $check_message "
50
49
}
51
50
52
- echo " run $app_lang app..."
53
- cd " /home/ishocon/webapp/$app_lang "
51
+ echo " start running $app_lang app..."
52
+ " run_${app_lang} "
53
+ echo " completed to start running $app_lang app..."
54
54
55
- " run_$app_lang "
You can’t perform that action at this time.
0 commit comments