Question

Why The changes of my development server, are not reflected in the production server (views and urls)??

Hi, I am writing to see if you can help me with this: I happen is that I make changes in the development server and they work me well, but when I want to see them in production, I do not recognize them and I throw the error:

Page not found (404) Request Method: GET Request URL: http://www.maxsistemas.cl/casas/mipagina

I have tried all sorts of views, and called in urls, (all of them work in development, but nothing works for me in production) last clone a class definition that makes the same call and uses the same template but only change the name of the Definition to see if it works, and it happens to me the same everything works well in development, but when I want to see it in production, I throw the error mentioned at the beginning (404).

I have also tried, reloading nginx with several commands for me to take the changes, but the negative result even, these are the commands I tried:

Sudo systemctl daemon-reload Sudo systemctl start gunicorn Sudo systemctl restart nginx Sudo systemctl start nginx Sudo ufw allow ‘Nginx Full’

Thank you for the help, I do not know what else to try.


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Try rebooting the droplet by typing following command in the command prompt

sudo reboot

@jtittle Finally succeed in solving !!!

Was what I suspected, finally managed to find the right command that generated a borron and new account in my drop and so take into account the changes made. The solution in case you ever come across a similar problem is:

“Sudo reboot”

Thank God, and I can go ahead with my project.

Greetings.

@jtittle

Please, this is below I send it to support, but they did not give me any specific answer but I am responsible for what I do on my server,

Now please read it and tell me if this throws you some previous experience or I forget the subject ??

this to support ----->

After doing a thousand things with my code and try it and re-test it on my local machine and on the development server in my droplet, I make changes to my code and I incorporate new pages, and everything works well for me on both sides My home and the environment of development of the droplet).

But when I want to see the changes in my domain, these are not reflected and after making queries in the community and investigate by other means the conclusion is that “there are no programming errors, or configuration”

So I did a last test and delete several urls from my urls.py file and after that I completely deleted my urls.py file and of course I can not enter my application because it gives me error, but in the domain everything follows such As if nothing has happened, then I stopped the server with all the commands to stop and restore and my site keeps pointing everything as it is without changes (like glue stick) no matter what I do, it does not reflect my urls changes.

These are the commands I tried to take off my nginx:

Sudo systemctl start nginx Sudo systemctl stop nginx Sudo systemctl restart nginx Sudo service nginx start Sudo service nginx stop Sudo service nginx restart Sudo /etc/init.d/nginx start Sudo /etc/init.d/nginx stop Sudo /etc/init.d/nginx restart

Can you check what happens in my droplet ??? Or give me some command to reset nginx and take what I do in development ??