Displaying 20 results from an estimated 45 matches for "release_path".
2006 Mar 16
4
Capistrano :update_code problem
...k to a dir that doesnt exist...
I checked the gems/capistrano-1.1.0/lib/capistrano/recipes/standard.rb
which seems to be the source and found this..
*************************************************************************
task :update_code, :roles => [:app, :db, :web] do
on_rollback { delete release_path, :recursive => true }
source.checkout(self)
run <<-CMD
rm -rf #{release_path}/log #{release_path}/public/system &&
ln -nfs #{shared_path}/log #{release_path}/log &&
ln -nfs #{shared_path}/system #{release_path}/public/system
CMD
end
*********************...
2006 May 14
3
Configuring Capistrano For Local To Remote Deployment
How does one configure capistrano for moving local file to your remote
server? In the docs it says that one cannot use file:// so what''s the
configuration step for resolving this issue?
Thanks in advance,
-Conrad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060514/93bb7173/attachment-0001.html
2006 Feb 25
1
a switchtower recipe to copy rather than checkout
...ever directories or files you want using tar''s
--exclude FILE option.
I include my after_update_code as this seems something most people need to do.
This could be done a lot better but it works :)
desc "fix up database and .htaccess"
task :after_update_code do
run "cp #{release_path}/config/database.yml.templ #{release_path}/config/database.yml"
run "cp #{release_path}/public/dot.htaccess.deploy #{release_path}/public/.htaccess"
end
desc <<DESC
Update all servers with the latest release of the source code.
This is a modified version that copies a local...
2006 Apr 18
3
Capistrano from windows to linux.
There seems to be a bug when deploying a rails application developed
in windows to a linux box. The rake deploy command attempts to run the
command "/install/path/current/script/process/reaper" but the files do
not have the execute bit set.
What can I do to make sure either the execute bit is run or prepend
the command with sh or ruby?
Thanks.
2006 Sep 06
4
Setting Product Env
When I am using my rails models in my worker class, it appears the
background worker class is always using development no matter what I do.
I set background.yml to production. I even have ENV[''RAILS_ENV''] ||=
''production uncommented in environment.rb. I don''t have the development
db even created on my production box, so not sure where it is getting
development
2006 Feb 19
8
SwitchTower to skip config/ directory
Hello,
I am trying to figure out how to use switch tower.I have a local copy of
source code and I want to put it on the host.Now I dont want to put
directories like config/ because the settings on the host and the one on my
machine are different.
Any way to do this?
Also is svn necessary to use SwitchTower?
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Dec 14
3
reaper spawner
Hi,
Anyone know where i can find out more info on Reaper/Spawner.
Currently, every time i add a new account on my production machine, i
have to restart the whole server. After about 150 accounts, this puts a
real strain on the server (it takes 3 full minutes before i can access
any site on the server).
I think reaper/spawner is my answer, but i am havving trouble figuring
out how to use it.
2006 May 18
3
capistrano and Dreamhost issue
Hi,
i''m striving to capistranize a foo app on DH.
Everything is hosted on DH to simplify a bit :
- svn repository (http access)
- the application
- the DB
I used the recipe of Jamis Buck modified by Geoffrey Grosenbach which
you can find here : http://nubyonrails.com/pages/shovel_dreamhost
I did the least modifications possible. As recommended.
1) When I launch the
2005 Aug 04
1
SwitchTower CVS support
...class CVS
attr_reader :configuration
def initialize(configuration)
@configuration = configuration
end
def checkout(actor)
cvs = configuration[:cvs] ? configuration[:cvs] : "cvs"
command = <<-CMD
if [[ ! -d #{actor.release_path} ]]; then
#{cvs} co #{configuration.repository} #{actor.release_path}
fi
CMD
actor.run(command)
end
end
end
end
As you can see it''s nothing more than a rip-off of the subversion one,
minus the subversion bits. I got this far and then ran int...
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
...ILS_ENV''] = ''staging''
puts "ENV[''RAILS_ENV''] = #{ENV[''RAILS_ENV'']}"
end
desc "Copying the right mongrel cluster config for the current stage
environment."
task :copy_mongrel_cluster_config do
run "cp -f #{release_path}/config/deploy/staging/mongrel_cluster.yml
#{release_path}/config/mongrel_cluster.yml"
end
desc "Start the backgroundrb server"
task :start_backgroundrb , :roles => :app do
run "cd #{current_path} && nohup ./script/backgroundrb start -- -r
staging > #{cu...
2006 Jul 27
5
Dreamhost working deploy.rb? Can anyone post/send me a copy?
Hi,
Just trying to get Capistrano working to Dreamhost. I''m hitting a
permissions issue on the reaper file at the moment.
Has anyone a copy of the capistrano DEPLOY.RB file they could post or
send me a copy of please?
Thanks
Greg
--
Posted via http://www.ruby-forum.com/.
2006 Jan 24
2
SwitchTower and multiple database.yml files - how do you deal with them?
Hi everyone,
What are other people doing with regards to database.yml being in
version control? My dilema:
I set up my rails app in svn using these instructions:
http://wiki.rubyonrails.com/rails/pages/HowtoUseRailsWithSubversion
The part to note is where I ignore database.yml, allowing different
developers to keep their own database.yml without clobbering other
developers'' files.
2006 Oct 13
0
Deployment problem with Capistrano
...ollowing task:
desc "Copy the database config file over and set up sym links to the
content"
task :after_update_code do
db_config = "#{shared_path}/config/database.yml"
puts "Cropying config files and creating content sym-links... "
sudo "cp #{db_config} #{release_path}/config/"
sudo "ln -s #{shared_path}/public/product
#{release_path}/public/product"
sudo "ln -s #{shared_path}/public/preview
#{release_path}/public/preview"
end
and placed it in deploy.rb.
Typing ''rake remote:show_tasks'' shows the task as available....
2010 Sep 27
3
Rails3 app deploy : how to ?
Hello,
I know many people are asking this kind of question. I searched in
this forum and some others in the web but i did found something clear
enough for my "ror''s power" (i''m not completly new but real
close ;-) )
Well, I''m developing my application on os x, i''m using svn (team
choice) for versionning but i will need to deploy on linux server
(with
2006 Oct 03
3
Capistrano and Uploaded Documents
I have an application I''m working on which allows me to upload files. The
files are stored somewhere in the public directory so that they can be
accessed directly. When I deploy an update with Capistrano, I ''lose'' the
files because of the current symlink points to the new checked out version.
Before I start working on a solution, has anyone else already solved this
2006 Mar 07
17
[UNDER CONSTRUCTION] YAC? (Yet Another Capistrano)
My needs are far more modest than Capistrano''s capabilities. Also, when
working in a shared hosting environment, the Capistrano model can be
outside the capabilities allowed by the Web host.
I simply need to push selected directories (on a changed-file basis) out
to a server. I have about 80% of the code written to do this (I''m
considering YAC for the name, with a nod to
2006 Apr 25
4
Symlinks in Capistrano?
I have a few projects with large directories (say, user-uploaded files) that
make using Capistrano a bit awkward. However, I suspect that I may have
reached the "write a custom task" level.
(I suppose I''m just thinking out loud, here...)
It seems as though I''d want this directories symlinked in /shared... Maybe
there''s a way to extend the
2006 Mar 24
1
Caching and Capistrano
I had an incredibly difficult time getting this to work correctly and I
have a couple of comments/questions, after the fact.
When using caching and Capistrano together, how have you set the
permissions on your RAILS_ROOT/public folder...or have you sent your
cache data to your document root? I''ve got it working now, but of
course, it will break the next time I deploy.
I was
2006 Jan 14
2
SwitchTower and SCGI
Hi !
Following the manual, section 2.6 describes how to replace the restart
task. Since I''m using Lighttpd and SCGI, I did the following:
desc "Restart the web server"
task :restart, :roles => :app do
sudo "cd #{deploy_to}/#{current} && scgi_cluster stop <
#{deploy_to}/#{current}/config/.password"
sudo "cd #{deploy_to}/#{current} &&
2007 Nov 27
1
capistrano hangs
Any idea why this command takes upwards of 15 minutes to complete?
run "cd #{release_path} && ORACLE_HOME=/home/oracle
RAILS_ENV=production rake db:migrate"
When running it against my local Postgres it completes in a few
seconds or so. Running it against my local Oracle XE takes only
slightly longer. But running it with capistrano over ssh is taking
years away from my li...