This project was generated with:
jets new demo --database postgresql
cd demo
jets generate scaffold Post title:string
Then the demo controller was added and connected to the /info
route.
The info route shows database info.
Configure a .env
file to use the actually DATABASE_URL. Example:
DATABASE_URL=postgresql://USERNAME:PASSWORD@DNS-HOSTNAME.us-west-2.rds.amazonaws.com/DBNAME?pool=5
You can use .env
, .env.remote
, .env.development.remote
, etc per Env Files
Then you will be ready to deploy:
jets deploy
If you visit the /info
path, you'll should see something like this: