Displaying 20 results from an estimated 30000 matches similar to: "how does capistrano get the ENV?"
2006 Mar 28
1
Capistrano: env not setup properly over ssh
Hi,
If I make a Capistrano task like
task :test, :roles => :app do
run "env"
end
It prints something completely different than if I just do
ssh login@host env
I need all my login scripts to run so all my environment vars (including
PATH) are set. All my Capistrano tasks are failing because the paths
are setup properly.
Thanks for the help.
--
Posted via
2006 May 25
2
Capistrano only runs migration against production env?
All,
Just read in the Capistrano manual about the Capistrano "migrate" task.
There it says that:
"By default, all this task does is change to the directory of your
current release (as indicated by the current symlink), and run rake
RAILS_ENV=production migrate. You can specify that it should run against
the latest release (regardless of what the current release is) by
setting
2011 Apr 18
2
rubygems fail - require hpricot!
Hi guys,
I wanted to fetch some info from webpage and use it in my db. I read
hpricot is one way to do it. But the problem is I''m unable to use it
with my app. For some reason after successfully installing hpricot it
fails when I try to use it in the rails console.
I''ve been trying to fix this for the last four-five days. I''m stumped !
I tried re-installing everything
2006 Aug 04
8
Capistrano /usr/bin/env: ruby: no such file or directory
Hi,
I''m deploying to a prod linux server via Capistrano, but the last step,
running the reaper, won''t complete.
Ruby is stored in /usr/local/bin on the server, and I''m deploying from
winxp.
$ ssh mcalogin@lx07
Password:
mcalogin@LX07:~> env | grep "^PATH"
PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/b
in:/opt/
2013 Oct 16
1
Issue with Deploying a Rails app on VPS - cannot load such file -- unicorn/launcher
I am trying to deploy a rails application to a digitalocean VPS droplet. I
have the following setup Ruby on Rails on Ubuntu 12.10 (Nginx + Unicorn). I
have installed Ruby ruby-2.0.0-p247 and rails Rails 4.0.0 via rvm but when
I try to restart Unicorn I get the following error.
/usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems
/core_ext/kernel_require.rb:45:in
2010 Sep 09
4
Unicorn fails to restart gracefully on capistrano deploy
First off thanks very much for all the hard work on unicorn. Alas, we''ve encountered an issue where unicorn fails to spawn new workers that have loaded the incoming revision on a capistrano deploy. I''m not entirely sure the issue is due to unicorn as it appears that bundler was responsible for a similar issue in the past:
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 May 16
8
capistrano can''t find svn
I''m trying to get capistrano to deploy to an osx machine - rake
remote:cold_deploy but it fails on the svn co line with
"bash: line 2: svn: command not found"
I''ve set the proper path to svn (/usr/local/bin) in both .bash_profile
and .bash_login but capistrano seems to be ignoring these.
How does capistrano know where to look for svn?
Thanks
2010 Dec 11
2
Problem using rvm in bash script
I am using rvm installed on Ubuntu 10.04 as recommended in the rvm
docs (including changes to .bashrc) and all is working well with
several versions of Rails, and Ruby 1.8.7 and 1.9.2.
If I run
rvm use 1.9.2
it says
Using /home/colinl/.rvm/gems/ruby-1.9.2-p0
and if I run
rvm info
It shows exactly what I would expect for 1.9.2 and I can start the
rails server and all is well.
The problem arises if
2008 Apr 29
1
Webistrano recipes association (was: [Capistrano] Webistrano 1.3 released)
I see at some point recipes were changed from project-associated to
stage-associated, is there some explanation or examples of that use-case?
Could I request we have both? In my current cap scripts, we don''t have any
stage-specific recipes, but maybe I''m just not understanding this
completely.
On Tue, Apr 29, 2008 at 1:04 PM, Jonathan Weiss
2011 Apr 21
2
[asterisk-user] Can't get hostname on asterisk dialplan by ENV()
Hi Friend,
Can't get hostname environment variable on asterisk dialplan.
Help me about how to get hostname environment variable on asterisk dialplan.
I have written "export HOSTNAME" in /root/.bash_profile and when i execute
"echo $HOSTNAME" then get right hostname but not success through asterisk
dialplan.
Get environment variable path right value through below
2006 May 17
3
Capistrano: Skipping require of dynamic string
Hi all,
I am starting out to play with capistrano. I installed the capistrano
gem, and I got some messages. I am not sure if these are errors,
warnings or just status messages.I hope someone here can help me
understand these messages, so that I don''t suspect Capistrano
installation if I run into issues further down. :-)
binil$ gem install -r capistrano
Attempting remote installation
2007 Feb 08
1
mongrel cluster and local gems loading problem
Hello,
I''m trying to augment the GEM_PATH to load gems from ~/.gem/ using this
at the begging of the rails application config/environment.rb file:
ENV[''GEM_PATH''] = File.expand_path(''~/.gem'')
This works fine from within script/console:
$ script/console
>> require ''pdf/writer''
=> true
But when I try to run:
2006 Apr 20
1
Capistrano not working for me
Hello fellow railers,
I''m new to the whole RoR thing and I have finished installing and setting
everything up on my OSX G4 Powerbook. I followed the step by step
instructions at Hivelogic, running lighttpd and everything else. I''m having
an issue with Capistrano.
I''m following the tutorial at Apple:
http://developer.apple.com/tools/rubyonrails.html
Everything in
2007 Jan 12
1
capistrano setup bails with RegexpErr on show_tasks
I am new to RoR, but I have had RoR running with Capistrano on a
different box. However I''m installing a fresh copy now and am finding
constant regex errors from the standard.rb file while attempting to
"show_tasks". As this is a new installation, everything is up-to-date.
Here''s the environment:
FreeBSD 6.2-RC2
ruby 1.8.5
gem 0.9.0
rake 0.7.1
net-ssh 1.0.10, 1.0.9
2008 Jul 03
1
halp! howto config env.rb to look for rmagick gem?
hi,
my rails application is having trouble locating rmagick to use with acts
as attachment. my host put the gem in
/home/myaccount/ruby/gems/gems/rmagick. how do i tell my rails app
rmagick is located there?
i tried
require "/home/myaccount/ruby/gems/gems/rmagick", but that was crashing
my rails app.
and
ENV[''GEM_PATH''] =
2006 Jun 28
0
Capistrano Command Worries
Hey all,
I have a problem that I cannot wrap my head around. I have a
capistrano task to kill my lighttpd process and restart it. Here is
the subtask, stop_lighttpd, that fails:
task :stop_lighttpd, :roles => :web do
run "kill -9 `ps aux | grep lighttpd | grep #{deploy_to} | awk
''{print $2}''` > /dev/null"
end
I know for a fact that when stop_lighttp is
2008 Apr 15
4
Version Control (and gems)
1. Full version control of a web app would include the constellation
of gems actually used. I can do ''gem list'' and put that into a file
in version control but that could include unused gems. That is, it
could include gems use by other projects.
And putting the whole gem in version control seem like overkill since
the authors do that. But it might be safer.
Do we have a
2007 Jun 06
0
Capistrano: Port in SVN
. . .
* executing "sudo chmod -R g+w /usr/local/svn/project_name"
servers: ["project_name.com"]
[project_name.com] executing command
command finished
* executing task svn_import
Adding branches and tags
ssh: connect to host project_name.com port 22: Connection refused
svn: Connection closed unexpectedly
Importing application.
ssh: connect to host
2007 Jul 29
3
capistrano problems
I installed capistrano and have tried several things. Can''t seem to get
it working.
This is what i am getting.
C:\ruby\radrails\modernfossil>cap deploy
* executing `deploy''
* executing `deploy:update''
** transaction: start
* executing `deploy:update_code''
svn: Can''t create tunnel: The system cannot find the file specified.
***