question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the best way to put into production in heroku?

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
luisdemarchicommented, May 6, 2018

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

[uwsgi]
http-socket = :$(PORT)
master = true
processes = 4
die-on-term = true
memory-report = true
manage-script-name = true
mount = /=app:create_app()

Procfile web: uwsgi uwsgi.ini

1reaction
frolcommented, May 5, 2018

Running the command in Bash, you must escape the parenthesis with quotes: '/=app:create_app()'

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found