procfile

Deploy the backend and frontend on the same Heroku app/dyno

◇◆丶佛笑我妖孽 提交于 2020-06-09 16:46:31
问题 At the root of my project, I have a frontend and backend folder. Both folders contain a package.json that list their dependencies. How do I tell Heroku to run npm install on both folders when deploying the application? It seems like Heroku expects to have a single package.json file by default. Do I have to do something with a Procfile? The Heroku documentation doesn't seem to tell much about my specific question. Thanks for the help! 回答1: Seems that you can put a package.json file on the root

What is Procfile? and Web and Worker

别来无恙 提交于 2020-01-10 06:53:28
问题 Is it necessary to give 'worker' information in Procfile? If yes then what it is actually - couldn't find nice article regarding this. I hope you guys might have idea. I have already added web: node server/server.js detail in the Procfile. Any help would be appreciated! 回答1: Procfile is a mechanism for declaring what commands are run by your application’s dynos on the Heroku platform. From Process Types and the Procfile, which is a good introduction, but basically you use the Procfile to tell

Difficult time using Mezzanine on Heroku - issues with Procfile and dictionary Value Error

不想你离开。 提交于 2020-01-06 14:04:29
问题 Using the following tutorials and github templates here, here, and here , I've spent the better part of the evening wrestling with django and mezzanine. Right now I've got a mezzanine-project , called uccdev which is working nicely when I run python manage.py runserver . Now, I want to use gunicorn and foreman to get work with thing, so that I can later upload my projects to heroku. According to Josh Finnie, Adding the below Procfile got Mezzanine running on Gunicorn and successfully got

Difficult time using Mezzanine on Heroku - issues with Procfile and dictionary Value Error

被刻印的时光 ゝ 提交于 2020-01-06 14:03:01
问题 Using the following tutorials and github templates here, here, and here , I've spent the better part of the evening wrestling with django and mezzanine. Right now I've got a mezzanine-project , called uccdev which is working nicely when I run python manage.py runserver . Now, I want to use gunicorn and foreman to get work with thing, so that I can later upload my projects to heroku. According to Josh Finnie, Adding the below Procfile got Mezzanine running on Gunicorn and successfully got

Heroku one request spawns two responses that crashes my app

亡梦爱人 提交于 2019-12-25 18:36:32
问题 In my Heroku Django app, for the user account registration flow, there is a typical request activate account that happens when the user receives an email with a special "activate" URL. In the app, this activation should happen only once. The only identifier on that URL is an activation token. The token is used to "activate" the account, and also to identify the user (retrieve his username from the DB). Once this token is used, it is deleted. For that reason, activation must happen only once.

What does ${PORT:-3000} mean in Heroku Procfile?

笑着哭i 提交于 2019-12-25 08:58:45
问题 Heroku suggests this Procfile command to start Puma on Rails 5 setup: web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development} At first I thought 3000 was a default value, but in fact foreman uses port 5000 if PORT is missing in development. Question: What does the notation ${VARIABLE:-3000} mean? -- Update: It seems like puma is the culprit: Foreman/Puma isn't using the specified port in dev env 回答1: That is the default value of the VARIABLE . Use Default Values. If

gunicorn on heruko binding to localhost, without messing up deployment to heruko

对着背影说爱祢 提交于 2019-12-24 16:05:11
问题 This is a spin off question from gunicorn on heroku: binding to localhost. How can I get gunicorn to work both locally (using foreman) and for deployment on Heroku? Procfile contains: web: gunicorn mysite.wsgi When I deploy locally using foreman, gunicorn binds to http://0.0.0.0:5000 . I want it to bind to 127.0.0.1:8000 . However, if I change to the Procfile to this: web: gunicorn -b 127.0.0.1:8000 mysite.wsgi Then I can't deploy to Heroku, the browser will return "application error" $

Serve a Bottle application from gunicorn on Heroku?

你离开我真会死。 提交于 2019-12-24 02:56:21
问题 Procfile web: python server.py server.py from os import environ from bottle import app, route, run, static_file @route('/') def root(): return "Hello world!" if __name__ == '__main__': run(server='gunicorn', host='0.0.0.0', port=int(environ.get("PORT", 5000))) requirements.txt gunicorn psycopg2 git+https://github.com/defnull/bottle#egg=bottle Relevant portion of logfile (after git push ) heroku[router]: at=error code=H14 desc="No web processes running" 回答1: First of all: Are you certain that

Heroku, Java, Procfile, Could not find or load main class

妖精的绣舞 提交于 2019-12-19 06:57:21
问题 I'm using heroku with maven to run a server. My goal is to have heroku run the java class server.class as a web dyno. How would I write a procfile to execute the java program server.class as web? My current Procfile web: java -cp $JAVA_OPTS target/classes/v1/a1/server My error.(From heroku logs) Picked up JAVA_TOOL_OPTIONS: -Xmx350m -Xss512k -Dfile.encoding=UTF-8 Error: Could not find or load main class target.classes.v1.a1.server State changed from starting to crashed Possibly useful

Heroku, Java, Procfile, Could not find or load main class

人盡茶涼 提交于 2019-12-19 06:57:12
问题 I'm using heroku with maven to run a server. My goal is to have heroku run the java class server.class as a web dyno. How would I write a procfile to execute the java program server.class as web? My current Procfile web: java -cp $JAVA_OPTS target/classes/v1/a1/server My error.(From heroku logs) Picked up JAVA_TOOL_OPTIONS: -Xmx350m -Xss512k -Dfile.encoding=UTF-8 Error: Could not find or load main class target.classes.v1.a1.server State changed from starting to crashed Possibly useful