To create new form follow this link
.env
is required locally to run the project. For updating production .env
file, create and edit .env.production
.
.env
content
REGISTER_DB_USER=[your_db_username]
The app is hosted on a paid Heroku dyno.
To deploy on this dyno, simply add Heroku as a git remote with:
$> git remote add heroku https://git.heroku.com/hesav-forms.git
Then push the desired project state on Heroku, from any branch or commit with:
$> git push heroku master
To execute the migration on Heroku, use the following command:
$> heroku run rails db:migrate
The application being deployed to Heroku, a PostgreSQL add-in is activated there.
Thus, to connect to the production database, type the following command in the app code source directory on your machine:
$> heroku pg:psql
To configure hstore
on the database, you have to connect to database with heroku pg:psql
then run CREATE EXTENSION hstore;
. Finally you can run heroku run rake db:create
etc...
App is using Mailgun to send mail through action mailer. Mailgun is an add-on on Heroku. You can access Mailgun config from Heroku app dashboard. Mail config is defined in /config/environments/production.rb
.