Displaying 20 results from an estimated 3000 matches similar to: "Capistrano, OS X"
2006 Apr 21
4
Bus error in ./script/console with postgres (ext. library)
Is there some special magic that needs to be performed so that the
C-based postgres extension library works with the Rails console?
I have installed the postgres extension library (replacing the pure Ruby
version: postgres-pr) from <http://ruby.scripting.ca/postgres/>
Everything works great from WEBrick, but as soon as I fire up the
console and try to use it, I get a bus error:
2006 Jun 16
15
Mongrel_rails restart and sudo
Sorry for the newbie question but I''m stumped:
I have an app that requires sudo to run mongrel_rails. For my capistrano
recipe is do it like this:
sudo "mongrel_rails start -e production -p #{application_port} -d -c
#{current_path}"
Which works famously.
Now I have tried several things for my restart task. Here they are:
sudo "cd #{current_path} && sudo
2007 Feb 05
3
Deploying to production with backgroundrb (capistrano)
I have noticed that occasionally (about 50% of the time) when i
deploy (using capistrano) my app to a production server, i have to
ssh into the box and manually
stop and start backgroundrb to get it to load my workers.
this is my basic setup
i have 2 workers:
lib/workers/mp3_worker.rb => takes a hash of params to downsample an
mp3
lib/workers/flv_worker.rb => takes a has of
2006 Aug 24
5
Unable to start with Capistrano...
I''ve created a couple of tasks in my deploy.rb file for starting and
stopping backgroundrb on the remote server. The stop task runs fine
and kills the process. And the start task *seems* to run successfully,
but backgroundrb is never started on the remote host.
Has anyone had success with this? Here are my deploy tasks:
desc ''Start backgroundrb server (default
2006 May 25
5
Weird Capistrano problem
I''m having problems launching the spin process via the deploy.rb task.
Everything works great when is run the script manually via:
% ssh admin@monterey.example.net /Web/Rails/Example/current/script/spin
However, when I run ''cap spinner'' or ''rake remote:exec ACTION=spinner'',
I get the following errors:
% cap spinner
loading configuration
2009 Feb 15
2
Execute cap deploy:migrations fails
Hi there, I am trying to deploy a rails app on dreamhost.
Here is the error message that I get:
fatal: ''home/USER_NAME/DOMAIN_NAME/git/APPLICATION_NAME.git'': unable
to chdir or not a git archive
fatal: The remote end hung up unexpectedly
/Users/USER/.gem/ruby/1.8/gems/capistrano-2.5.3/lib/capistrano/recipes/
deploy/scm/git.rb:224:in `query_revision'': Unable to resolve
2013 Mar 03
1
Deploy with Capistrano. Bundle install freezes indefinetly.
I am fighting with this for 5 days... i''m getting crazy!
Here is my deploy.rb:
require "bundler/capistrano"
require "rvm/capistrano" # Load RVM''s capistrano plugin.
set :rvm_ruby_string, :local # Or whatever env you want it to run
in. ''1.9.3''
set :domain, ''www.xxx.com''
set :application,
2006 Apr 08
16
International characters
I am new to Ruby on Rails. I have read a lot, and bought several books,
and now I have started to implement a modified "shopping cart",
following the AWDWR-book, with modifications to suit our application
(subscriptions and memberships).
Having done up to chapter 7 I have had no real problems, except one:
Since our customers are Swedish I need the screen names, texts etc to be
in
2006 Jun 12
3
Syntax errors on "insert into"
I''m digging around and googling but can''t seem to find what I think is a
simple thing. All I''m trying to do is insert data in a migration into a
table, using regular SQL statements.
LIke this:
class AddStateData < ActiveRecord::Migration
def self.up
INSERT INTO states values ('''',''Alaska'');
INSERT INTO states values
2006 Jun 13
5
Can RoR handle a lot of traffic?
And compared to PHP?
--
Posted via http://www.ruby-forum.com/.
2007 Feb 05
1
Deploying with capistrano issue. Resolution !
ok, i was wrong. the failure on deployment using capistrano is 100%
using these commands
## Our Handlers
desc "Restart BackgrounDrb"
task :restart_uploader, :roles => :app do
run "#{current_path}/script/backgroundrb stop"
run "#{current_path}/script/backgroundrb start"
end
here is the console post deploy on the remote server
########
[current]$
2006 Apr 20
9
How to change project location?
I moved a project from /var/www/mypro to /home/user1/mypro ... what do I
have to change in config?
The server does not start anymore.
Thank you - Eric
--
Posted via http://www.ruby-forum.com/.
2006 Jun 02
3
Use a Model or Controller?
I am putting up a tool that connects to a subversion repository and
checks latest revision and downloads the changeset log for all the
changes made since last check and puts inside a hash for various uses
inside the code.
I am just wondering if the code that checks the subversion repo and
reads it''s data should bolong to a controller of it''s own or a model
of it''s own.
2006 Jun 07
4
WEBrick wouldnt start....
hi guys, just did a search and cant find anything helpful..
suddenly my WEBrick cant start.... omg.... dunno wat''s wrong with it
that''s wat i typed :
......$ruby script/server
=> Booting WEBrick...
......$
that''s all... i dont even know wat''s wrong and when i did a ps -F -C
ruby, i also couldnt find anything.....
did i jsut corrupt the file or wat???
2006 Apr 09
8
Computer Name
How to get the name of the computer accessing the application? I mean
the computer the user use to access the application.
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 23
4
Penalties of using an eval on every request
Hello RoR!
I''m building a rails app for hosting multi-page surveys. I set up
questionnaire, question, and question_component models. Now I''m
initializing them with some data.
survey.rb
q1 = Question.new "q1"
q1.quote "Welcome to a test of the new interviewing system."
q2 = Question.new "q2"
q2.quote "Do you like pie?"
2007 Apr 03
2
mongrel cluster restart with capistrano fails but manually works
Hi all,
I am out of my head here...
I have a 3 node cluster with 10 mongrels running on each. When I
deploy, I break all the mongrels every time. I have tried just about
everything. I can restart my mongrels without a hitch manually, it''s
only when I use cap deploy. Maybe I am missing something here... so if
I can get some help it would be appreciated. The errors are the
typical mongrel
2006 Apr 30
4
Server IP
Can a ruby on rails app obtain the ip of the server it is running on?
I''d like the application to be able to determine x set of data is for y
data, for example:
These domains all point to the same ip...
mydomain-1.com
mydomain-2.com
mydomain-3.org
I can obtain the domain name from the request by using:
@request.domain
I''d like the application to grab the corresponding ip for
2006 Jun 05
4
Using grep with tail. Unix challenge!
I want to tail my development.log file, but i only want to show the
lines that have the word "ERROR" in. How can i do this??
Doing this :
tail -f development.log | grep "ERROR"
will filter the log file, but it will not constantly update itself. i.e.
newly added lines to the log file that contain "ERROR" are not
displayed.
Does anyone know how to do this?
Thanks
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
Hi.
I am using BackgrounDRb to process thumbnails and upload to S3 -
things are hunky-dory in development (thumbs are generated, these are
uploaded to S3, the metadata is saved to trhe DB, and I get a nice
status page updated by periodic calls via ask_status), but when I
tried to deploy to our staging server and stop/start BackgrounDRb via
Capistrano, things blew up - well, not exactly,