|
@@ -154,8 +154,7 @@ Mass deployments tricks & tips:
|
154
|
154
|
|
155
|
155
|
#Configure nginx & restart it
|
156
|
156
|
export lodel2_install_dir="/usr/lib/python3/dist-packages";
|
157
|
|
- export my_ip=$(hostname -I | cut -d' ' -f1)
|
158
|
|
- echo -e "server {\n\tlisten 80 default_server;\n\tlisten [::]:80 default_server;\n\tlocation / {\n\t\tproxy_pass http://$my_ip:1337/;\n\t}\n\t\n\tlocation /static/ {\n\t\talias $lodel2_install_dir/lodel/plugins/webui/templates/;\n\t}\n\t\n}\n" > /etc/nginx/sites-enabled/default
|
|
157
|
+ echo -e "server {\n\tlisten 80 default_server;\n\tlisten [::]:80 default_server;\n\tlocation / {\n\t\tproxy_pass http://localhost:1337/;\n\t}\n\t\n\tlocation /static/ {\n\t\talias $lodel2_install_dir/lodel/plugins/webui/templates/;\n\t}\n\t\n}\n" > /etc/nginx/sites-enabled/default
|
159
|
158
|
/etc/init.d/nginx restart
|
160
|
159
|
#Build dyncode for instances
|
161
|
160
|
slim -a -m
|