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.

Steps to deploy to Heroku

See original GitHub issue

Hi!

I’d like to know which steps you guys take to deploy a project using cookiecutter-flask to Heroku. I had to manually install dev dependencies so npm run build could be executed which sounded kind of weird to me…

Any help/guidance is appreciated!

Thank you!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
TobKedcommented, Sep 13, 2019

I will deploy my app on Heroku soon, I will try to push this topic forward.

1reaction
franc3000commented, Sep 19, 2017

@gcrsaldanha were you able to deploy to Heroku successfully? I’m getting errors:


Starting process with command `gunicorn erdos.app:create_app\(\)`
[INFO] Starting gunicorn 19.7.1
[INFO] Listening at: http://0.0.0.0:16541 (4)
[INFO] Using worker: sync
[INFO] Booting worker with pid: 9
[INFO] Booting worker with pid: 10
[INFO] Booting worker with pid: 11
State changed from starting to up

[ERROR] Exception in worker process
Traceback (most recent call last):
  File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/arbiter.py", line 578, in spawn_worker
    worker.init_process()
  File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/base.py", line 126, in init_process
    self.load_wsgi()
  File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/base.py", line 135, in load_wsgi
    self.wsgi = self.app.wsgi()
  File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
    return self.load_wsgiapp()
  File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
    return util.import_app(self.app_uri)
  File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/util.py", line 364, in import_app
    app = eval(obj, vars(mod))
  File "<string>", line 1, in <module>
  File "/app/erdos/app.py", line 19, in create_app
    register_extensions(app)
  File "/app/erdos/app.py", line 36, in register_extensions
    webpack.init_app(app)
  File "/app/.heroku/python/lib/python2.7/site-packages/flask_webpack/__init__.py", line 27, in init_app
    self._set_asset_paths(app)
  File "/app/.heroku/python/lib/python2.7/site-packages/flask_webpack/__init__.py", line 69, in _set_asset_paths
    "Flask-Webpack requires 'WEBPACK_MANIFEST_PATH' to be set and "
Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying with Git - Heroku Dev Center
To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your...
Read more >
Deploy Your App for Free in 7 Easy Steps With Heroku
1. Create the App on Heroku. In your terminal, place yourself inside your app folder. · 2. Set the Node Server Configuration ·...
Read more >
Heroku Deployment Methods: 1/3 - YouTube
In this, the first of three deployment showcases, you'll see how app can be deployed from the terminal using `git push Heroku master`,...
Read more >
How To Deploy to Heroku in 5 Minutes - YouTube
In this video I teach how to deploy an api to Heroku in under 5 minutes. Heroku is one of the best services...
Read more >
Deploy Your App to Heroku Under 5 Minutes! (Heroku Tutorial)
Key moments. View all · Create a New Application · Create a New Application · Create a New Application · Install the Heroku...
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