Reputation: 1425
I have a rails application deployed on heroku. There is a script inside the application in the following path
config/data/create.rb
On local I just have run the following in the app path:
ruby config/data/create.rb
and the script gets executed.
What needs to be done to execute the same on heroku ?
Upvotes: 0
Views: 538
Reputation: 149
open terminal in your project folder on your local machine. Commit all the changes to git. Push the changes to Heroku using
git push heroku master
After pushing changes on the same terminal -
heroku run ruby config/data/create.rb
Upvotes: 1