-
Has anyone successfully deployed V5 in production? I am having challenges deploying mine to heroku, especially with the .env file. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
You just need to set ENV_SILENT node build/server.js |
Beta Was this translation helpful? Give feedback.
-
For Windows: $ set ENV_SILENT = true
$ set APP_KEY = node ace generate:key
$ node build/server Let me know if this works or not. |
Beta Was this translation helpful? Give feedback.
-
Steps to deploying V5 to heroku
$ heroku config:set APP_KEY=your_app_key_here --app=name_of_the_app_you_created_on_heroku;
$ heroku config:set ENV_SILENT=true --app=same_as_above;
$ heroku config:set DB_CONNECTION=db_driver (e.g 'pg' for postgres) --app=same_as_above
"build": "node ace build --production",
"start": "node build/server.js"
web : yarn run start Note, option 2 is a requirement if you are deploying directly from your github repo. |
Beta Was this translation helpful? Give feedback.
For Windows:
Let me know if this works or not.