Params:
id
renders widget_id for file directory & used in the data-attr
below
host
is where the widget lives
pip install -r requirements.txt
also needs node, npm & the following packages::
npm install phantomjs phantom-url
run behind nginx
location / { try_files $uri @yourapplication; }
location @yourapplication {
proxy_pass
}
pip install uwsgi
run from same directory as proxy.py
: gunicorn -w 4 -b 127.0.0.1:8080 proxy:app &
cd ~/apps/ && rm -rf FlaskProxy && git clone [email protected]:abunsen/FlaskProxy.git && cd FlaskProxy && source ~/apps/bin/activate && kill
cat ~/up.proxy.pid && gunicorn -w 4 -D -b 127.0.0.1:8080 proxy:app -p ~/up.proxy.pid && npm install phantomjs phantom-url