Is there a way to write commands from the Rails console in Heroku?

Hi, I am using Heroku and Ruby on Rails. In heroics I can do

heroku run rails c -a app

Which gives me console access and I can do administrative things like deleting records

I work in the settings of the company, and I would like to have a log of all the commands entered into the console. Therefore, if something is wrong, we can check the logs.

Is there a way to record what is typed in the rails console?

+4
source share
2 answers

Rails allows you to keep console history, but it will not be stored in Heroku, at least not permanently.

Heroku, heroku run rails console, Heroku , , . Rails , , dyno , .

Rails - Railtie, , - , .

+2

All Articles