foreman

foreman can't find java

假如想象 提交于 2019-12-11 05:49:11
问题 I'm trying to use foreman to run a java app locally which deploys fine to heroku. My Procfile looks like this web: java $JAVA_OPTS -cp target/classes;target/dependency/* Start but when i do formeman start i get 15:51:21 web.1 | unknown command: java $JAVA_OPTS -cp target/classes;target/dependency/* Start If I just enter java at the prompt i get java's help text back so its on my path. If I use the full path to the java executable in the Procfile it works, but it'd be cleaner if I didn't need

RSolr::Error::InvalidRubyResponse - 200 OK

别来无恙 提交于 2019-12-10 03:24:36
问题 I am getting following error even after starting forreman and starting sunspot:solr : RSolr::Error::InvalidRubyResponse - 200 OK Error: <result status="1">java.lang.NullPointerException at org.apache.solr.handler.XmlUpdateRequestHandler.doLegacyUpdate(XmlUpdateRequestHandler.java:129) at org.apache.solr.servlet.SolrUpdateServlet.doPost(SolrUpdateServlet.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at

Gunicorn Connection in Use: ('0.0.0.0', 5000)

Deadly 提交于 2019-12-09 15:12:03
问题 I installed redis this afternoon and it caused a few errors, so I uninstalled it but this error is persisting when I launch the app with foreman start . Any ideas on a fix? foreman start 22:46:26 web.1 | started with pid 1727 22:46:26 web.1 | 2013-05-25 22:46:26 [1727] [INFO] Starting gunicorn 0.17.4 22:46:26 web.1 | 2013-05-25 22:46:26 [1727] [ERROR] Connection in use: ('0.0.0.0', 5000) 回答1: Check your processes. You may have had an unclean exit, leaving a zombie'd process behind that's

Foreman cannot find $JAVA_OPTS

随声附和 提交于 2019-12-08 18:57:27
I have an error following the next tutorial from Heroku specifically on this part [ https://devcenter.heroku.com/articles/getting-started-with-java#run-the-app-locally][1] If I execute that instruction foreman throws the following error: Error: cannot find java class $JAVA_OPTS I have already declared a env variable like this: Name variable : JAVA_OPTS Variable value: -Xms256m -Xmx512m The Proc file that foreman is trying to execute has the following: web: java $JAVA_OPTS -cp target/classes:target/dependency/* Main Im clueless about what is happening. Note: I already checked some other

Procfile gunicorn custom module name

爱⌒轻易说出口 提交于 2019-12-08 18:01:15
问题 Context: I am writing a medium sized flask application (10-15 views), and in the process, I am hoping to organize the code in a manner that will make it easily maintainable and extensible (not a monolithic file as most Flask applications are). The structure of the application mimics the documentation as follows: /AwesomeHackings /ENV /AwesomeHackings /models /static /templates /__init__.py /awesome.py /awesome.cfg /Procfile /README.MD /requirements.txt /run.py Problem: I am unable to get

Foreman cannot find $JAVA_OPTS

99封情书 提交于 2019-12-08 04:14:20
问题 I have an error following the next tutorial from Heroku specifically on this part [https://devcenter.heroku.com/articles/getting-started-with-java#run-the-app-locally][1] If I execute that instruction foreman throws the following error: Error: cannot find java class $JAVA_OPTS I have already declared a env variable like this: Name variable : JAVA_OPTS Variable value: -Xms256m -Xmx512m The Proc file that foreman is trying to execute has the following: web: java $JAVA_OPTS -cp target/classes

Rails server hangs when started with foreman

天大地大妈咪最大 提交于 2019-12-08 03:56:54
问题 Here's what my Procfile looks like: web: bundle exec rails server thin -p $PORT -e $RACK_ENV worker: bundle exec rake jobs:work I intend to add a worker process because I wish to run some background jobs. I'm following these instructions This is what I noticed: No problems encountered if the worker is started separately. When I keep the second line in the Procfile and don't not change anything else, the rails server serves a couple of requests and hangs after that As mentioned here , I've

Rails server hangs when started with foreman

僤鯓⒐⒋嵵緔 提交于 2019-12-07 10:35:34
Here's what my Procfile looks like: web: bundle exec rails server thin -p $PORT -e $RACK_ENV worker: bundle exec rake jobs:work I intend to add a worker process because I wish to run some background jobs. I'm following these instructions This is what I noticed: No problems encountered if the worker is started separately. When I keep the second line in the Procfile and don't not change anything else, the rails server serves a couple of requests and hangs after that As mentioned here , I've added STDOUT.sync = true to config/environments/development.rb and verified the same in the rails console.

Foreman not working with NGINX

孤者浪人 提交于 2019-12-07 02:36:53
问题 I'm trying to use Foreman (version 0.31.0) to manage our application's processes but I'm not having much luck with nginx (nginx/1.0.10 + Phusion Passenger 3.0.11). Here's the relevant line from my Procfile: nginx: sudo /home/ubuntu/nginx/sbin/nginx When I start the app, Foreman reports that nginx is started and then immediately terminated: $ foreman start 21:18:28 nginx.1 | started with pid 27347 21:18:28 nginx.1 | process terminated 21:18:28 system | sending SIGTERM to all processes However,