Does anyone know the easiest way to run a rake task for a Rails app on an Elastic Beanstalk environment?
I have some data that I want to reset every once in a while (timeline TBD). I've seen other posts talking about creating a cron task, but I just want to be able to execute the task on a one-off basis for now.
You'd need to login to the box in order to run a rake task.
simply run eb ssh <env-name>
your app is at /var/app/current
Figured out a way.
rake db:migrate
or whatever task you're trying to run)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With