martedì 15 luglio 2014

rails console and dbconsole on OpenShift

in my rails development environment I can start the console or the DB console by issuing the well know commands:


rails c(onsole)
rails dbconsole

In order to achieve the same result in production environment on OpenShift issue the following:

cd $OPENSHIFT_REPO_DIR

RAILS_ENV=production bundle excec rails c(onsole)

RAILS_ENV=production bundle excec rails dbconsole