- Your app is named 'something' and that your staging app is named 'something-staging'. This seems to be a common thing.
- You only have a single staging HEROKU_POSTGRESQL databae.
Totally untested. 😏
- Grabs the current db name
- makes a fork of the production apps DATABASE_URL db, onto the staging app
- waits for the new db
- promotes the new db to DATABASE_URL
- removes the original staging db.
./stage-me.sh my_prod_app_name
Optionally with a db plan type, defaults to ronin
./stage-me.sh my_prod_app_name crane