Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thank you for the tutorial. I am running into an issue as soon as I run: sudo start myapp.
I am getting: start: Job failed to start. Grepping on myapp returns no results as well. Any help is appreciated!
after i go to my domain, i see empty page.
in error log nothing, in access only favicon.ico and my domain
This tutorial is very helpful for beginner, to start from ground up. Thank you!
Hi , i went a bit far on this and configured HTTPS as well on NGINX,
But now when i open https://myserveraddress:8000/myapp/ , i am getting SSL_PROTOCOL_ERROR, and browser saying that the certificates that maybe required are not available.
Here are my files…
#mysite_conf.conf
upstream django { server unix:///home/ubuntu/docpad/Docpad/mysite.sock; # for a file socket #server 127.0.0.1:8001; # for a web port socket (we’ll use this first) }
server { # the port your site will be served on listen 8000; # the domain name it will serve for server_name IP; # substitute your machine’s IP address or FQDN charset utf-8;
# max upload size
client_max_body_size 75M; # adjust to taste
# Django media
location /media {
alias /home/ubuntu/docpad/Docpad/assets; # your Django project's media files - amend as required
}
location /static {
alias /home/ubuntu/docpad/Docpad/assets; # your Django project's static files - amend as required
}
# Finally, send all non-media requests to the Django server.
location / {
uwsgi_pass django;
include /home/ubuntu/docpad/Docpad/uwsgi_params; # the uwsgi_params file you installed
}
}
#my default conf for nginx (/etc/nginx/sites-available/default)
server { listen 443; server_name IP;
root /;
index index.html index.htm;
ssl on;
ssl_certificate /home/ubuntu/docpad/self-ssl.crt;
ssl_certificate_key /home/ubuntu/docpad/self-ssl.key;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
ssl_prefer_server_ciphers on;
location / {
root html;
}
}
But no luck, anyone ?
Could someone please explain the benefits of having uWSGI sitting between nginx and, say, a flask-application?
Quick tip, if you’re on Ubuntu 15.10 or a droplet that uses systemd (rather than Upstart, as Ubuntu 14.04 uses) then this tutorial are more helpful for making the .ini and .service files.
Thanks for giving such good advice on setting up python apps on ubuntu. I am having an issue with displaying the app once the nginx files have been updated. Just clarify for me, writing the myapp file in /nginx/sites is going to run when nginx starts? Im getting the default nginx page when I type in the ip address into the browser, even though I have set up the myapp file in sites-available and enabled
Great article. thanks.
in UWSGI ini, I had to do a bit of changes to get it up and running.
[uwsgi]
module = wsgi
http-socket = :8080
master = true
processes = 5
socket = /tmp/demoapp.sock
chmod-socket = 660
vacuum = true
die-on-term = true
HTTP port needed to be specified. Also I had to put my socket in the tmp folder
when I run the first uwsgi command and then go to my server ip followed by :8080 it doesn’t load the ‘Hello there’ text, it doesn’t give an error either it just seems to be loading something but very slow and stays like this, in my terminal it seems that uwsgi is running fine and there are no errors.
What am I doing wrong here?
EDIT: I had a firewall setup from a previous tutorial and needed to allow port 8080