A code that works fine in Local, is not runnning properly when pushed to server. I checked that the codes are pushed and commited successfully in git and after I deployed,the code is not working properly. The same is working in Local , indicates that the code is not wrong. Any help will be appreciated.
Did you run command for bench migrate?
bench --site [site name] migrate
after that run
Thnz for the reply @mohitchechani ,
Ya , actually those are for local bench right?..The code is working fyn in local. But when pushed and deployed to server, it’s not working.
No, you also have to run the commands after deploying so that the new code is integrated to your production server.
Aww ok. I have a doubt then,
bench --site [site name] migrate Here , [Site name] is local site we have created right?not the server site? I am sry that I am new to frappe..
[Site Name] is site where you want to apply the changes to.
In your case, its server site.