Sumeet Masih
Sumeet Masih

Reputation: 607

Rails app not reflecting recent changes at all

I have a rails(Rails 3.2.12, ruby 1.9.3p547) app running on AWS ubuntu cloud server, with nginx as app server and unicorn as reverse proxy server. I have made few changes in the view file but those changes are not reflecting on browser. Code is currently live ("env=production")

I tried

sudo service my_app restart
[sudo] password for me:
Shutting down my_app: Starting my_app: Already running
                                                           [  OK  ]
$  sudo service nginx restart
Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]
$

but still got no help its still rendering the previous one. I tried commenting the whole controller file for the same view but still the app is not showing any error. I have confirmed that the app is running from the same folder in which I am making changes

I got stuck at this point please help. Thanks in Advance

Upvotes: 0

Views: 1613

Answers (1)

Sumeet Masih
Sumeet Masih

Reputation: 607

Got the issue resolved with the help of the comments which gave me the idea. located the .pid file in tmp/pids/unicorn.pid which was having the current process id

$ kill -QUIT 5454 #process id   

and then again started the unicorn service and nginx service, and changes started reflecting

Upvotes: 1

Related Questions