|
|
Mozy Online Backup: 2GB Free. Automatic. Secure.
Subject: Re: where's the code for --apply-to ? - msg#00062
List: lang.ruby.capistrano.general
sorry Jamis, only just saw your post - didn't follow me to my inbox..
Thanks anyways, I'm looking to write a little recipe that sets up a new
instance of your rails app and database on your
development/staging/productions servers. I'm also looking to generate
apache vhost configs with this recipe.
It should be failrly simple, a macro of existing tasks, but I'll post
my results here anyway once I'm done.
One thing I already encountered was setting up the database. I won't
try to automate the database creation (well.. maybe) but I want to at
least load the schema in the database. I thought this would be as easy
as doing a deploy_with_migrations on an empty database. But the schema
doesn't get imported that way, so I need to do a rake db:schema:import.
Seems weird though, should deploy_with_migrations work?
Jeroen
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
capistrano-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Setting up Cap for non-rails site
We're using Capistrano to deploy a few rails sites, and would like to
start using it for some of our static html sites. However the 'cap
--apply-to' for capistranizing a directory definitely expects it to be a
rails type environment and so utterly fails. Does anybody know of a
nice quick start guide for setting up Capistrano to 'deploy' just a
couple simple directories of plain html files and images?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
capistrano-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---
Next Message by Date:
click to view message preview
Re: Setting up Cap for non-rails site
On Nov 14, 2006, at 7:38 AM, Jon Garvin wrote:
> Does anybody know of a
> nice quick start guide for setting up Capistrano to 'deploy' just a
> couple simple directories of plain html files and images?
I wrote a simple guide here that I used with Perl:
http://nubyonrails.com/articles/2006/03/09/using-capistrano-with-perl-
or-php
Basically, just make a dir with config and public directories, then
copy an existing deploy.rb template. It works quite well.
Geoff
......................................
Blog | http://nubyonrails.com
Screencasts | http://peepcode.com
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
capistrano-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---
Previous Message by Thread:
click to view message preview
Re: where's the code for --apply-to ?
Jeroem,
The --apply-to implementation is a Rails generator. It is in
capistrano/generators/rails.
- Jamis
On Nov 10, 2006, at 7:33 AM, jeroen wrote:
Hi,
I'm trying to code a rake task similar to cap --apply-to
Where can I find the code for that?
Jeroen
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to capistrano-
unsubscribe-/JYPxA39Uh5TLH3MbocFFw@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/
group/capistrano
-~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
Next Message by Thread:
click to view message preview
Re: where's the code for --apply-to ?
Jeroen,
deploy_with_migrations assumes the pre-existence of the database in
question. If the database is there, the migration should proceed,
starting with migration #1, but note that for established
applications, that's not generally recommended. Some earlier
migrations might depend on the existence of models that no longer
exist in the app. The very best way to get a new instance of an app
up and running is to do db:schema:import, and then db:migrate to pick
up the stragglers.
- Jamis
On Nov 13, 2006, at 1:50 PM, jeroen wrote:
sorry Jamis, only just saw your post - didn't follow me to my inbox..
Thanks anyways, I'm looking to write a little recipe that sets up a
new
instance of your rails app and database on your
development/staging/productions servers. I'm also looking to generate
apache vhost configs with this recipe.
It should be failrly simple, a macro of existing tasks, but I'll post
my results here anyway once I'm done.
One thing I already encountered was setting up the database. I won't
try to automate the database creation (well.. maybe) but I want to at
least load the schema in the database. I thought this would be as easy
as doing a deploy_with_migrations on an empty database. But the schema
doesn't get imported that way, so I need to do a rake
db:schema:import.
Seems weird though, should deploy_with_migrations work?
Jeroen
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to capistrano-
unsubscribe-/JYPxA39Uh5TLH3MbocFFw@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/
group/capistrano
-~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
|
|