
check-ai
check-ai
UofM EECS 441: Mobile App Development for Entrepreneurs Project
#How to Deploy If you're Sarthak, Brandon or Preeti, you can deploy the site. Instructions adapted from https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-16-04
- SSH into the DigitalOcean server
- Ensure the following system files are as follows:
/etc/systemd/system/checkai.service
Description=Gunicorn instance to serve myproject
After=network.target
[Service]
User=bwaggone
Group=www-data
WorkingDirectory=/home/bwaggone/checkai
Environment="PATH=/home/bwaggone/check-ai/venv/bin"
ExecStart=/home/bwaggone/check-ai/venv/bin/gunicorn --workers 3 --bind unix:myproject.sock -m 007 wsgi:app
[Install]
WantedBy=multi-user.target
/etc/nginx/sites-available/checkai
server {
listen 80;
server_name 138.197.40.0;
location / {
include proxy_params;
proxy_pass http://unix:/home/bwaggone/check-ai/checkai.sock;
}
}
These are the configuration files that will start the gunicorn service with the server. The next commands actually start the server. We should proooobably modify the source folders to not use my home directory but oh well
- Run the following commands to start the process
$ sudo systemctl start checkai
$ sudo systemctl enable checkai
- Connect the ngix process to sites enabled.
$ sudo ln -s /etc/nginx/sites-available/checkai /etc/nginx/sites-enabled
- Check for errors and restart with,
$ sudo nginx -t
$ sudo systemctl restart nginx
- Just in case, make sure the firewall is configured to allow ngix through
$ sudo ufw allow 'Nginx Full'
Vibe Score

0.302
Sentiment

0
Rate this Resource
Join the VibeBuilders.ai Newsletter
The newsletter helps digital entrepreneurs how to harness AI to build your own assets for your funnel & ecosystem without bloating your subscription costs.
Start the free 5-day AI Captain's Command Line Bootcamp when you sign up: