Advertisement
adellam

Untitled

Oct 21st, 2022
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. [Unit]
  2. Description=Small service that creates a directory
  3. After=syslog.target network.target
  4.  
  5. [Service]
  6. Environment=FLASK_CONFIG=production
  7. Environment=FLASK_APP=dircreate
  8. User=dircreate
  9. WorkingDirectory=/opt/dircreate
  10. ExecStart=/opt/createdir/venv/bin/gunicorn -b localhost:5000 "dircreate:create_app()"
  11. Restart=always
  12.  
  13. [Install]
  14. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement