user3576036
user3576036

Reputation: 1425

How to manually execute a ruby script file on heroku?

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

Answers (1)

Prithviraj Sukale
Prithviraj Sukale

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

Related Questions