similar to: Capistrano/SVN: Deploying different database.yml for live?

Displaying 20 results from an estimated 10000 matches similar to: "Capistrano/SVN: Deploying different database.yml for live?"

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,
2008 Jan 08
5
Different environments in backgroudrb.yml
Hi, Got everything setup nicely with backgroundrb for the development environment and running tests with rspec. However, I have to keep editing the backgroundrb.yml file, to switch between development and testing environment. How can I declare a development, testing and production environment in backgroundrb.yml? Thanks in advance Rai
2006 Apr 01
4
Saving images in shared directory w/ Capistrano/SVN?
Hi all, I''m using Capistrano and SVN to version control and deploy, but I''m not sure what to do about my images directory. I use file_column and RMagick to save images to the disk under a model called "Image", and they''re saved in public/image/... etc. Each time I deploy a new version, my image folder doesn''t exist anymore. I don''t want
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
2006 Apr 16
2
Capistrano and multiple Dev environments?
I have working copies of code in development on multiple places - work machine, home machine, laptop, etc. I can''t always force these machines to use the same credentials; I end up with each machine having slightly different database.yml configurations. With Subversion-Pre-Capistrano, I left the entire config directory out of Subversion (or some kind of template; see
2006 Jul 19
2
best practice deployment
what is the best method to deploy from a development machine to production when you need slightly different files for each mode do you use TWO files such as db.yml.dev and db.yml.prod and use capistrano to deploy one or the other to database.yml or is it better to have one file and use conditions in your file such as <% if ENV[''RAILS_ENV''] = "production" %>
2008 May 06
3
Capistrano: chmod 600 database.yml
Would it be wise to chmod 600 your database.yml file using Capistrano when deploying seeing as it contains your mysql db in plain text? ~ Mark -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Apr 06
3
Deploying with Capistrano via cron
I''m attempting to auto deploy a rails application to a development server periodically during ongoing development. I''ve setup ssh keys to allow the proper user auto login permissions, but have ran into 2 issues. 1. When the script is run from a cron job as the same user as I currently manually deploy from I receive an error when reaper tries to execute - "can''t
2006 Jun 07
7
Tunneling in capistrano twice
Hi there, The default recipe expects you to be able to access your web server directly from your local machine. On our web server, for security purposes, it is only possible to ssh to it through one particular ip (which is also a remote machine.) The capistrano source is so compact and tidy it looks very hackable. But rather than messing around I thought I''d ask first if anyone else
2006 May 16
4
Capistrano to deploy to Mac OS X?
We''re moving some "internal use" apps to a spare internal machine - instead of a public, shared host. I''m not sure if it''s relevant, but the new machine is running OS 10.3. I''m having a strange problem using Capistrano. It happens on both our development machines, and only when deploying to this server. I run ''cap deploy'' and get:
2006 Apr 24
12
setup a staging site?
Hi, i''m wondering how to setup a staging site for my RoR app. Right now i run webrick on my laptop to develop, then i svn commit my changes to the production server. However i need to make my development environment available to others and not just for me on my laptop. I have RoR setup on a hosted vps server which runs in production environment. Its on apache 1.3 and mysql. How can i
2006 Apr 18
7
freeze_gems to upgrade and SVN
Hi all- I just decided to move from my 1.1.0 to 1.1.2. I had previously frozen to 1.1.0 and therefore had all of rails in SVN in my vendor directory. When I finally got rake freeze_gems to work, it blasted (rm -rf) my vendor/rails directory and put a new one in there. This also blasted all my .svn directories. Is there some convenient way to do a freeze upgrade and play well with SVN?
2007 Jul 09
8
Capistrano mongrel recipes and /usr/local/bin
Hello, I''m trying to deploy my application with Capistrano using Mongrel recipes. Since I''ve installed Ruby from source code, mongrel scripts are found in /usr/local/bin. But the recipes can''t find mongrel_rails : "bash: mongrel_rails: command not found". The path of the user account used to deploy is OK. For sure, I can redefine
2006 May 23
2
Capistrano won''t spawn fcgi processes
I''ve ran into quiet an annoying problem: I have a Capistrano task that is supposed to run a shell script. The script restarts a rails application by first killing all active fcgi processes and then spawning new ones again. The shell script works fine when executed locally on the server but running this in a Capistrano task will simply not work. The task is simple: desc
2007 Feb 12
1
-c switch in the startup command
I have been strugging with getting backgroundrb to stay in the correct environment using multiple configuration files and the -c switch when starting backgroundrb. If I start brb like this: ./script/backgroundrb run RAILS_ENV=development -- -c ../config/development_background.yml where development_background.yml specifies "development" for rails_env and environment, the first worker
2006 May 25
3
No joy for newbie Capistrano user
Hello, I tried taking Capistrano out for a test drive and I can''t even get out of the garage. I am following the instructions here: http://manuals.rubyonrails.com/read/chapter/98#page262 As well as Duncan Davidson''s Deploying Rails with Lighty: Deploying Rails with LightTPDhttp://duncandavidson.com/essay/2005/12/railsonlighty Specifically, when I do: rake remote:exec
2006 Jul 13
3
Capistrano / developing on win32 / deplyoying on Linux
Hi, I''m new at rails and am in the midst of deploying my first app to a test server. The app was developed on windows. I used Capistrano to deploy, and found a few issues: 1) I must chmod 755 dispatch.cgi each time I deploy 2) script/parse/reaper also doesn''t have the executable attributes so the deployment fails. 3) database.yml as checked out from svn isn''t
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
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