Deploying to Heroku (takes 7 minutes)
Our templates are% compatible with Heroku, just make sure to understand and execute the following steps:
1$ npm i heroku -g
1$ heroku login -i
1$ heroku create <your_application_name>
1$ git push heroku master
You cannot create a .env
file on Heroku, instead you need to manually create all the variables under your project settings.
Open your .env
file and copy and paste each variable (FLASK_APP, DB_CONNECTION_STRING, etc.) to Heroku.
Your local MySQL Database now has to be uploaded to a cloud, there are plenty of services that provide MySQL database hosting, but we recommend JawsDB because it has a Free Tier, it's simple and 100% integrated with Heroku.
mysql://tqqa0ui0cga32nxd:eqi8nchjbpwth82v@c584md9egjnm02sk.5btxwkvyhwsf.us-east-1.rds.amazonaws.com:3306/45fds423rbtbr
pipenv run upgrade
command on the production server like this:1$ heroku run -a=<your_app_name> pipenv run upgrade
⚠️ Note: Notice that you have to replace
<your app name>
with your application name, you also have to be logged into Heroku in your terminal (you can do that by typingheroku login -i
)