The issue is that when local backup is uploaded to the live site, it will replace all the contents I made in live site. I have a local instance, but someone in this forum suggested me to have the live site to do the development. So, I’m now developing in the live site (it’s not officially public yet though).
And I put the file in lib/tasks, local instance works, not the live instance. I’ll try the lib/rake as well.