vforgione / ansible-role-uwsgi-vassal Goto Github PK
View Code? Open in Web Editor NEWCreates an app user, applications directory, virtualenv for an application meant to be run as a vassal to a uWSGI process in emperor mode.
License: MIT License
Creates an app user, applications directory, virtualenv for an application meant to be run as a vassal to a uWSGI process in emperor mode.
License: MIT License
In my playbook I add my role and the app_name
- role: uwsgi-vassal
app_name: foo
Below is part of the contents of foo.ini
pythonpath = /www/foo
chdir = /www/foo
/www/...
is hardcoded. Can this be made configurable?
Below is my working configuration
pythonpath = /var/venvs/foo/bin/python
chdir = /pathtorepo/foo/foo
I'm using this role to deploy and redeploy a django application. At the end of my first deployment I run commands like collectstatic
. If I try to redeploy the same project using this role I get the error:
TASK [uwsgi-vassal : cloning project into path/here]
fatal: [54.237.192.11]: FAILED! => {"before": "182e722d472b44779e3ac7b2e101ba7116dabd2b", "changed": false, "failed": true, "msg": "Local modifications exist in repository (force=no).", "warnings": []}
I was able to remedy this by adding force: yes
While building I received the following deprecation issues.
TASK [uwsgi-vassal : installing system packages] *******************************
[DEPRECATION WARNING]: Using bare variables is deprecated. Update your
playbooks so that the environment value uses the full variable syntax
('{{system_packages}}').
This feature will be removed in a future release.
Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
TASK [uwsgi-vassal : pip installing python packages] ***************************
[DEPRECATION WARNING]: Using bare variables is deprecated. Update your
playbooks so that the environment value uses the full variable syntax
('{{python_packages}}').
This feature will be removed in a future release.
Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
I'd like to continue using this role, but might have to drop it when ansible axes that syntax.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.