Summary: | [PATCH] www/rubygem-unicorn: add rc.d script | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | geoffroy desvernay <dgeo> | ||||||||||
Component: | Individual Port(s) | Assignee: | Steve Wills <swills> | ||||||||||
Status: | Closed Feedback Timeout | ||||||||||||
Severity: | Affects Only Me | CC: | dgeo, ruby, w.schwarzenfeld | ||||||||||
Priority: | Normal | ||||||||||||
Version: | Latest | ||||||||||||
Hardware: | Any | ||||||||||||
OS: | Any | ||||||||||||
Attachments: |
|
Description
geoffroy desvernay
2013-12-08 14:20:00 UTC
Responsible Changed From-To: freebsd-ports-bugs->ruby Over to maintainer (via the GNATS Auto Assign Tool) Responsible Changed From-To: ruby->swills I'll take it. Hi, Having a bit of trouble with the rc script. When I run it, I get this: # service unicorn start Starting unicorn: . -E: not found # Perhaps you can take a look and send an updated script? Thanks, Steve This is a multi-part message in MIME format. Hi, Does the set_rcvar has not been deprecated recently ? Regis A. Despres Description: without rc_var and with better procname Responsible committer (ruby@FreeBSD.org; swills@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 1.02 (mode: change, diff: SVN) Description: Without rc_setvar and better procname Responsible committer (ruby@FreeBSD.org; swills@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 1.02 (mode: change, diff: SVN) *** Bug 194391 has been marked as a duplicate of this bug. *** Created attachment 148355 [details]
Correct patch (not uuencoded, with real corrections)
Really corrected, well-formatted patch. Sorry for last uuencoded junks...
Script looks better, but I still need example on how to use it. For example, suppose I've run "rails new myapp" in /usr/local/www, so I have myapp in /usr/local/www/myapp. In that dir, I can run "rails s" and it serves my new app. What entries do I need to put in /etc/rc.conf to have unicorn serve this app? I presume I need to create /usr/local/www/myapp/config/unicorn.rb with correct contents? If so, can you verify what should be in it? Thanks! Hi, sorry for the delay... For examples, as I'm not skilled in ruby/rails etc. I think the best exemples are to be found on official docs: https://devcenter.heroku.com/articles/rails-unicorn and samples: https://github.com/heroku/ruby-rails-unicorn-sample/blob/master/config/unicorn.rb You think such a file sould be added in port ? in pkg-message ? (In reply to geoffroy desvernay from comment #11) > Hi, sorry for the delay... > > For examples, as I'm not skilled in ruby/rails etc. I think the best > exemples are to be found on official docs: > https://devcenter.heroku.com/articles/rails-unicorn > and samples: > https://github.com/heroku/ruby-rails-unicorn-sample/blob/master/config/ > unicorn.rb > > You think such a file sould be added in port ? in pkg-message ? Ok, that helps with the unicorn.rb file, but what about rc.conf? The most accurate response should be: https://github.com/caleb/freebsd-unicorn#etcrcconf-details Again, I'm not a skilled rails/rack/capistrano user, just a simple BSD sysadmin :) Here for redmine I use happily (: unicorn_enable="YES" unicorn_command="/usr/local/bin/unicorn_rails" unicorn_profiles="redmine" unicorn_redmine_enable="YES" unicorn_redmine_rails="YES" unicorn_redmine_old_pidfile="/usr/local/www/redmine/tmp/pids/unicorn.pid.oldbin" unicorn_redmine_pidfile="/usr/local/www/redmine/tmp/pids/unicorn.pid" unicorn_redmine_config="/usr/local/www/redmine/config/unicorn.config.rb" unicorn_redmine_chdir="/usr/local/www/redmine" unicorn_redmine_user="redmine" unicorn_redmine_env="production" It seems that the rc script is more capistrano-layout oriented (then two lines are sufficient), and it may be simpler, but I'm not enought ruby-skilled to to it myself… Is this still relevant? I'll close this, not very important and the solution is far from perfect… Thanks ! |