Console problems when deploying a Rails app with buildpack?

I deployed my Rails app in conjunction with github (I did not use Docker).

When I accessed the console to check the deployed Rails data using “bundle exec rails c”, I get “bash: bundle: command not found”. Also, the version of Ruby is displayed as 2.7, although 3.2 was used when deploying.

All I want to do is run Rails commands on the deployed server.

How can I do that?


This is because bundle is not in your default PATH. To set the environment correct environment variables, call /cnb/lifecycle/launcher bash then run your command.

Alternatively, run /cnb/lifecycle/launcher bundle exec rails.

1 Like

Thank you very much! I will try that command!

Please, can you select the answer as a solution if it solved your problem?

1 Like