i am trying to figure out capistrano and am not having much luck. i''ve read through most of the tutorial on the rails site, but am not having much luck. i''ve heard that the info on the rails site is kind of outdated and being a beginner, i''m not sure if there is something i''m doing wrong, or if the latest version of capistrano and/or rails has made things different. so far, i''ve been able to successfully run rake deploy and have all of the files moved to the remote server without problems. but it does not run the migrations, so when i look in the database, everything is still empty on the remote server. also, while trying to troubleshoot my problems, it says that i can run rake show_deploy_tasks to find all of the tasks that are available, yet it gives me an error that says that it doesn''t know how to build that command. if anyone can point me in the right direction, i would greatly appreciate it... online resources, books, whatever. thanks --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
You must run the migrations, too: rake remote:migrate or rake remote:exec ACTION="migrate" You can also use: rake remote:deploy_with_migrations to deploy then migrate. the show tasks command has changed, its: rake remote:show_tasks you''re almost there, don''t give up! On 10/9/06, Charles Brian Quinn <me-1MWe0D6oSNwAvxtiuMwx3w@public.gmane.org> wrote:> You must run the migrations, too: > > rake remote:migrate > > or > > rake remote:exec ACTION="migrate" > > > You can also use: > > rake remote:deploy_with_migrations > > to deploy then migrate. > > the show tasks command has changed, its: > > rake remote:show_tasks > > you''re almost there, don''t give up! > > > > On 10/9/06, Josh <jjkiesch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > i am trying to figure out capistrano and am not having much luck. i''ve > > read through most of the tutorial on the rails site, but am not having > > much luck. > > > > i''ve heard that the info on the rails site is kind of outdated and > > being a beginner, i''m not sure if there is something i''m doing wrong, > > or if the latest version of capistrano and/or rails has made things > > different. > > > > so far, i''ve been able to successfully run rake deploy and have all of > > the files moved to the remote server without problems. but it does not > > run the migrations, so when i look in the database, everything is still > > empty on the remote server. > > > > also, while trying to troubleshoot my problems, it says that i can run > > rake show_deploy_tasks to find all of the tasks that are available, yet > > it gives me an error that says that it doesn''t know how to build that > > command. > > > > if anyone can point me in the right direction, i would greatly > > appreciate it... online resources, books, whatever. > > > > thanks > > > > > > > > > > > > > -- > Charles Brian Quinn > self-promotion: www.seebq.com > highgroove studios: www.highgroove.com > slingshot hosting: www.slingshothosting.com >-- Charles Brian Quinn self-promotion: www.seebq.com highgroove studios: www.highgroove.com slingshot hosting: www.slingshothosting.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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
thank you so much for the info Charles. i''m definitely starting to see all the power in using capistrano and wish i had started using this sooner. are there any books out there or recipes on doing some more advanced things? when i deply, i''m also still having to go in and copy my database.example.yml and change permissions on several of my tmp directories. also, if my development environment is different from the production server, what is the best way to handle multiple config files? i was thinking about doing it similar to the way the database.yml is handled. have a production config and use capistrano to cp it to the right place once the app is deployed. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Search the archives, just a few weeks back we helped someone solve this problem. Also check the capistrano google group. And here''s a pretty sophisticated cap recipe with a few cool tricks up it''s sleaves: http://www.slingshothosting.com/files/apache2_2_mongrel_deploy.rb and: http://svn.highgroove.com:8080/deployment/trunk On 10/9/06, Josh <jjkiesch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > thank you so much for the info Charles. > > i''m definitely starting to see all the power in using capistrano and > wish i had started using this sooner. > > are there any books out there or recipes on doing some more advanced > things? > > when i deply, i''m also still having to go in and copy my > database.example.yml and change permissions on several of my tmp > directories. also, if my development environment is different from the > production server, what is the best way to handle multiple config > files? > > i was thinking about doing it similar to the way the database.yml is > handled. have a production config and use capistrano to cp it to the > right place once the app is deployed. > > > > >-- Charles Brian Quinn self-promotion: www.seebq.com highgroove studios: www.highgroove.com slingshot hosting: www.slingshothosting.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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I asked Jamis and he said he''s working on new docs. Joe -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---