foreman

How to restart Foreman when code in a Django site changes?

自古美人都是妖i 提交于 2019-12-12 22:30:50
问题 I'm running a Django website in a Vagrant box that (roughly) mirrors a Heroku set-up. It uses Foreman with a Procfile like this: web: gunicorn projectname.wsgi > /vagrant/gunicorn.log 2>&1 However, when I change my Django code, the server doesn't restart or reload the code, which makes development... painful! How can I make Foreman serve the new code when it changes? 来源: https://stackoverflow.com/questions/38189188/how-to-restart-foreman-when-code-in-a-django-site-changes

`parse_rackup_file': rackup file (config.ru) not readable (ArgumentError)

╄→гoц情女王★ 提交于 2019-12-12 14:43:21
问题 I have this "web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb" in my procfile. After starting the server i am getting the below error message. foreman start 12:29:20 web.1 | started with pid 4876 12:29:20 web.1 | exited with code 1 12:29:20 system | sending SIGTERM to all processes 12:29:20 | /home/stcadmin/.rvm/gems/ruby-1.9.3-p448@cpi2/gems/unicorn-4.7.0/lib/unicorn/configurator.rb:659:in `parse_rackup_file': rackup file (config.ru) not readable (ArgumentError) 12:29:20 | from /home

Error on 'foreman start' while following the Python/Flask Heroku tutorial

社会主义新天地 提交于 2019-12-12 09:40:07
问题 Followed all instructions. Get this error when running foreman start : C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/foreman-0.47.0/lib/fo reman/engine.rb:39:in `trap': unsupported signal SIGHUP (ArgumentError) from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/foreman-0.47.0/lib/foreman/engine.rb:39:in `start' from C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/foreman-0.47.0/lib/foreman/cli.rb:34:in `start' from C:/Program Files (x86)/ruby-1.9.3/lib

Environment variables locally and Heroku

£可爱£侵袭症+ 提交于 2019-12-12 08:20:53
问题 I have a sinatra app in which i have a yml file to set environment variables, i call them using this method module MyConfig def config environment = ENV["RACK_ENV"] || "development" YAML.load_file("./config/config.yml")[environment] end end so when i want to use a variable i do this for example aws_access_key_id = config['aws_access_key'] I have a .gitignore file that ignores config.yml when pushing to github for example.So when I push to heroku these environment variables will not be

How to setup Rails 4, Resque 2 to run with Foreman?

余生颓废 提交于 2019-12-12 04:18:19
问题 I am trying to run a simple Rails application on Heroku with some background tasks. The application is deployed to Heroku, so I run it with Foreman locally so that things are similar to how it would work in production. However, I cannot get Resque to start and stay up. It shuts down everytime, even without any tasks submitted. This is how things are setup. Gemfile (based on the github page for resque) gem "resque", "~> 2.0.0.pre.1", github: "resque/resque" Procfile web: bundle exec rails

heroku ! resource not found

心不动则不痛 提交于 2019-12-12 03:38:53
问题 I am trying to access/redeploy my very simple node.js heroku app running on cedar stack. I have moved the directory around on my harddisk, apart from that nothing has changed since last time doing it successfully. The app locally / using foreman works ok, but whatever I do, except logging in, remotely fails with the kinda undescriptive "! resource not found" error message. -- LOGIN - OK 09:13 ~/web/2012/heroku [master]$ heroku auth:login Enter your Heroku credentials. Email: me@me.com

Puma: HTTP parse error, malformed request

安稳与你 提交于 2019-12-12 03:37:54
问题 Firing up my local server with foreman and I get the following whenever I make any request. HTTP parse error, malformed request (): #<Puma::HttpParserError: Invalid HTTP format, parsing fails.> ENV: {"rack.version"=>[1, 3], "rack.errors"=>#<IO:<STDERR>>, "rack.multithread"=>true, "rack.multiprocess"=>false, "rack.run_once"=>false, "SCRIPT_NAME"=>"", "CONTENT_TYPE"=>"text/plain", "QUERY_STRING"=>"", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"2.9.1", "GATEWAY_INTERFACE"=>"CGI/1.2"}

Heroku Foreman exits with an error code 5

▼魔方 西西 提交于 2019-12-12 01:27:27
问题 15:05:09 web.1 | started with pid 4888 15:05:10 web.1 | 15:05:10 web.1 | > finext_server@0.0.1 test F:\Projects\finext\server 15:05:10 web.1 | > set NODE_ENV=development && node ./bin/www.js 15:05:11 web.1 | 15:05:12 web.1 | exited with code 5 15:05:12 system | sending SIGKILL to all processes 15:05:12 | app.get('env'): development This is the output I get, and it is a little variable in terms of the code that gets executed after SIGKILL. Sometimes, a few more lines of coide get executed

How can I use Foreman host groups with Puppet?

☆樱花仙子☆ 提交于 2019-12-11 12:17:19
问题 I have this manifest: $foremanlogin = file('/etc/puppetlabs/code/environments/production/manifests/foremanlogin.txt') $foremanpass = file('/etc/puppetlabs/code/environments/production/manifests/foremanpass.txt') $query = foreman({foreman_user => "$foremanlogin", foreman_pass => "$foremanpass", item => 'hosts', search => 'hostgroup = "Web Servers"', filter_result => 'name', }) $quoted = regsubst($query, '(.*)', '"\1"') $query6 = join($quoted, ",") notify{"The value is: ${query6}": } node $