What is the best way to put into production in heroku?
See original GitHub issueI’m using heroku as server. Atleast my publications are simple, I configured the environment variables and sent the code by git that automatically Heroku executes the file “Procfile”.
In this file I removed only the last line that forced the variable of abiente like “development”, it was like this:
web: invoke app.dependencies.install-swagger-ui app.run --no-install-dependencies --host 0.0.0.0 --port $PORT
But in the Heroku logs I get a warning that the production server is not properly initialized for such a server role.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Preparing a Codebase for Heroku Deployment
1. Track your codebase in a Git repository · 2. Add a Heroku Git remote · 3. Add a Procfile · 4. Listen...
Read more >Heroku Deploy – How to Push a Web App or Site to Production
Heroku Deploy – How to Push a Web App or Site to Production · Step 1 - Create the project · Step 2...
Read more >Deploying your app on Heroku with staging and production ...
You are ready to deploy your app and you would like to check how it will look in a real environment before officially...
Read more >Using Heroku with Node.js: Production-Ready Application ...
On the UI with the Promote to production... button, you can simply push your Staging application to Production. These applications share the ...
Read more >Express Tutorial Part 7: Deploying to production
Now you've created (and tested) an awesome LocalLibrary website, you're going to want to install it on a public web server so that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found a tutorial with some extra settings, which says it’s good to use in heroku.
For any consult: (I found it more organized to separate the configurations)
uwsgi.ini
Procfile
web: uwsgi uwsgi.ini
Running the command in Bash, you must escape the parenthesis with quotes:
'/=app:create_app()'