source: OpenRLabs-Git/deploy/rlabs_installer/04_install_uwsgi.sh

qndtest
Last change on this file was 42bd667, checked in by David Fuertes <dfuertes@…>, 3 years ago

Historial Limpio

  • Property mode set to 100644
File size: 718 bytes
Line 
1#!/bin/bash
2
3
4echo "+------------------------------------------+"
5echo "|                                          |"
6echo "|         Installing UWSGI                 |"
7echo "|                                          |"
8echo "+------------------------------------------+"
9
10pip3 install uwsgi
11
12
13tar xf packages/uwsgi.tar.gz -C packages/
14
15w2p_dir=$(cat tmp/w2p_dir.tmp)
16w2p_dir_scaped=$(echo $w2p_dir | sed 's/\//\\\//g')
17sed -i -e "s/\$W2P_DIR/$w2p_dir_scaped/g"  packages/uwsgi/sites/web2py.ini
18
19mkdir -p /etc/uwsgi/sites/
20cp  packages/uwsgi/sites/web2py.ini /etc/uwsgi/sites/
21
22cp packages/uwsgi/uwsgi.service /etc/systemd/system/
23systemctl enable uwsgi.service
24systemctl start uwsgi.service
25
26rm -fr packages/uwsgi
27
Note: See TracBrowser for help on using the repository browser.