search for: after_update_cod

Displaying 20 results from an estimated 22 matches for "after_update_cod".

Did you mean: after_update_code
2006 Apr 03
2
Capistrano - how do I set up the database config?
...app is set up without database.yml in version control. I created a shared_path/config dir, and put database.yml in it. After I update the code, I want to link the app''s database.yml file to the shared config. So I added this task desc ''Copy the database config'' task :after_update_code, :roles => :app do run "ln -s #{shared_path}/config/database.yml #{current_path}/config/database.yml" end Unfortunately that doesnt work, because update_code is in a transaction, so current_path points to the app that''s currently running, rather than the most recently chec...
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
...I need to create sym-links to my file-column created content directories (in shared) and copy the database.yml file (also from shared) into the current folder. I''ve written the following 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 "...
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 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.
2007 Jun 28
3
acts_as_ferret and capistrano
Hi, I''d like to share the ferret indexes between deployments of a Rails app. At the moment the index is stored in #{RAILS_ROOT}/index meaning that it gets moved and must be rebuilt after every deploy. I guess the simplest solution would be to put it under log/ which is already shared by capistrano, any other ideas? Also, script/ferret_stop doesn''t work when run on a fresh
2006 Feb 25
1
a switchtower recipe to copy rather than checkout
...kout. I actually create my local directory using an svn export, but you can do whatever you like here, and just deploy a local copy of your development directory tree if you like. You can also exclude whatever 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_pa...
2006 Jul 06
6
Capistrano deployment questions == Best practice type ones
Hi everyone, I''ve been sold on the whole idea of using Capistrano for deployment of my sites and have successfully deployed three apps in three different environments all with success. As I''m trying to configure my sites I''ve encountered a number of issues/questions hence this post. 1. Database.yml Twice I''ve been stumped by apps refusing to work on
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 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
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
...p/start BackgrounDRb via Capistrano, things blew up - well, not exactly, but when the app tried to hand off the thumbnail generation, I got a "Could not connect to the BackgrounDRb server" error. Initially, when I didn''t start the BDRb server manually, I got: * executing `after_update_code'' * executing `set_env_staging'' ENV[''RAILS_ENV''] = staging * executing `restart_backgroundrb'' * executing `stop_backgroundrb'' * executing "cd /var/www/apps/my_app/releases/20080501133415 && ./ script/backgroundrb -e staging stop&qu...
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 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 Mar 30
11
Capistrano/SVN: Deploying different database.yml for live?
Greetings, Today I''ve been working out how to begin using Capistrano and so far I''m impressed. Even in my situation, learning Rails and deploying to a single server, it''s incredibly helpful. I do have one small question though: In using Subversion I''ve used the "ignore" feature to ignore my local database.yml file, because my local database and
2006 Apr 25
0
Capistrano adding shared files
...ed directory to my system. All I had to do was add a few lines to deploy.rb: desc "Add shared usr_img directory to shared" task :after_setup do run <<-CMD mkdir -p -m 775 #{shared_path}/user_img CMD end desc "Link shared usr_img directory to public/usr_img" task :after_update_code do run <<-CMD ln -nfs #{shared_path}/user_img #{release_path}/public/user_img CMD end Whee! --Al Evans -- Posted via http://www.ruby-forum.com/.
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 16
1
switchtower custom tasks question.
hi, i''m just getting started using switchtower for deployment. i''m working with a small team of 3 and a hosted subversion repository. i have switchtower working, but i need to create two custom tasks and have those tasks run at deployment. 1) copy a working dispatch.fcgi from another folder, and 2) copy db/database.example to db/database.yml here is what i''ve tried,
2006 Apr 30
4
Subversion and Capistrano
I have a project under Subversion, deployed by Capistrano. When it is deployed, obviously I need to deploy "real" copies of database.yml, deploy.rb, and maybe a couple of other files. But if I offer it for public checkout, I obviously do not want these files as part of the checked out code. What''s the best way to handle this? --Al Evans -- Posted via
2006 Jan 03
7
switchtower, windows and dispatch.fcgi
I just setup switchtower and I am very happy with it. Just one thing is giving me some headache: My development machine is windows and my deployment host is Unix. Each time I deploy I need to make dispatch.fcgi executable. I wrote my own task for that. But does there exist any smarter way to get this automated ? I think Subversion offers some possiblity to declare a file as executable, but no idea
2007 Jan 18
4
[ActsAsFerret] Index Directory Disappears and Not Re-created
Hi, This is a recurring issue for me - the index directory on my production server and everything below it occasionally disappears and isn''t reconstructed. I tried manually creating the entire index path manually before starting the server, but it still happened while the server is running. I don''t know what''s causing the index to disappear and I''m also not