|
@@ -151,7 +151,7 @@ Mass deployments tricks & tips:
|
151
|
151
|
|
152
|
152
|
#Configure nginx & restart it
|
153
|
153
|
export lodel2_install_dir="/usr/lib/python3/dist-packages";
|
154
|
|
- echo -e "server {\n\tlisten 80 default_server;\n\tlisten [::]:80 default_server;\n\tlocation / {\n\t\tproxy_pass http://127.0.0.1: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
|
|
154
|
+ echo -e "server {\n\tlisten 80 default_server;\n\tlisten [::]:80 default_server;\n\tlocation / {\n\t\tproxy_pass http://127.0.0.1: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
|
155
|
155
|
/etc/init.d/nginx restart
|
156
|
156
|
#Build dyncode for instances
|
157
|
157
|
slim -a -m
|