It’s not entirely clear from your question, but when you say that you SSH into the server and it still shows your old IP address, do you just mean in this message:
Thank you for using DigitalOcean's Django Application.
We have created a default Django application that can be seen from http://xxx.xxx.xx.xxx/
-------------------------------------------------------------------------------------
You can use the following SFTP credentials to upload your files (using FileZilla/WinSCP/Rsync):
Host: xxx.xxx.xx.xxx
User: django
-------------------------------------------------------------------------------------
Nginx listens on public IP (xxx.xxx.xx.xxx) port 80 and forwards requests to Gunicorn on port 9000
Nginx access log is in /var/log/nginx/access.log and error log is in /var/log/nginx/error.log
Gunicorn is started using an Upstart script located at /etc/init/gunicorn.conf
To restart your Django project, run : sudo service gunicorn restart
If so, that should be a problem. That file is created when you launch a new Django “one-click application.” That is just your initial information. If you create a snapshot, that file is not updated. There is no way for it to know the new IP.
You problem is going to lay somewhere else most likely. Are you seeing any errors in /var/log/nginx/error.log
?
What happens exactly when you open the page in a browser? Do you get connection refused or an error message or just a blank page?
I think the problem is with IP address. 104.131.181.48 is my newly allotted IP and that of sanpshot was 104.131.72.215. When I ssh into my droplet it still shows 104.131.72.215
Are you sure that it has the old IP? That should not be happening. Did you used
ifconfig
to check the IP?You can see that for yourself, I have provided the IP address. Its says connection was rejected.