Rails Console

Rails Console

The rails console can be access using the Web Terminal. The redis and database environment variables must be set as below:

export DATABASE_URL=postgresql://${CLOUDRON_POSTGRESQL_USERNAME}:${CLOUDRON_POSTGRESQL_PASSWORD}@postgresql/${CLOUDRON_POSTGRESQL_DATABASE}

export REDIS_URL=redis://${CLOUDRON_REDIS_HOST}

source /app/data/env.sh

rails console
Loading production environment (Rails 7.0.7.2)
irb(main):001:0>