3👍
I’m a little late to the party but Heroku just posted a blog post about how to accomplish this.
Read it here, but essentially, you’ll use this custom buildpack to have a sub-procfile setup like so:
Procfile:
web: bin/runsvdir-dyno
Procfile.web:
django: gunicorn path.to.wsgi:application --bind 127.0.0.1:$DJANGO_PORT
node: node server.js
1👍
You just need two different process names:
webpy: python manage.py runserver 0.0.0.0:$PORT
webjs: node bin/node_modules/app.js
(Assuming each process works properly otherwise)
0👍
Can’t post a comment yet, but have you tried:
web: python manage.py runserver 0.0.0.0:$PORT & node bin/node_modules/app.js
- [Django]-In Django, is there an easy way to render a text field as a template, in a template?
- [Django]-What are the cons of using Django compared to (ASP.net MVC,NHibernate and Spark View Engine)?
- [Django]-How do I paginate WeekArchiveView?
0👍
As I stated in the comment, you need to scale your apps process manager to include two dynos if you want two web processes:
heroku ps:scale web=2
👤BTC
- [Django]-How to remove all many to many objects in Django
- [Django]-ImportError: cannot import name <model_class>
- [Django]-Django queryset EXCLUDE: are these equivalent?
- [Django]-Not able to GET Image from Django Rest API
- [Django]-How can you exclude an item in the query set while in a for loop?
Source:stackexchange.com