This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(''.join(random.choice(''.join([string.ascii_letters,'_',string.digits])) for i in range(30))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=uWSGI instance to serve flaskapp | |
After=network.target | |
[Service] | |
User=peter | |
Group=www-data | |
WorkingDirectory=/home/peter/flaskapp | |
Environment="PATH=/home/peter/flaskapp/flaskappenv/bin" | |
ExecStart=/home/peter/flaskapp/flaskappenv/bin/uwsgi --ini flaskapp.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name your_domain wwww.your_domain; | |
location / { | |
include uwsgi_params; | |
uwsgi_pass unix:/home/peter/flaskapp/flaskapp.sock; | |
} | |
} |