Re: [capistrano] database doesn't migrate to ec2 production server http://passionate4.net/

2011-12-07 Thread jay parteek
Lee, I ran the migrations again it worked. Thanks Lee. On Tue, Dec 6, 2011 at 11:39 PM, Lee Hambley lee.hamb...@gmail.com wrote: Share your output logs, via gist or pastie, please. -- * You received this message because you are subscribed to the Google Groups Capistrano group. * To post

Re: [capistrano] database doesn't migrate to ec2 production server http://passionate4.net/

2011-12-07 Thread jay parteek
When I run the app at localhost and i see all the images which i migrated using rake db:migrate . My localhost is exactly similar to this url http://amazing-boutique-1061.spreeworks.com/ After this i deployed the application to ec2 production. I migrated the db with cap deploy:migrations , but

Re: [capistrano] database doesn't migrate to ec2 production server http://passionate4.net/

2011-12-07 Thread Lee Hambley
Jay, What exactly do you expect rake db:migrate does? It simply runs your migrations, it does not copy local state, and images to the remote server, that wouldn't make any sense. -- * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this

Re: [capistrano] database doesn't migrate to ec2 production server http://passionate4.net/

2011-12-07 Thread jay parteek
I got you. So rake db:migrate will just try to export the structure of the database placed inside the schema.rb. What if we want to copy the local state (may be some dummy data ) to the remote server? On Wed, Dec 7, 2011 at 2:21 AM, Lee Hambley lee.hamb...@gmail.com wrote: Jay, What exactly

Re: [capistrano] database doesn't migrate to ec2 production server http://passionate4.net/

2011-12-07 Thread Lee Hambley
You don't. There's almost never, ever, ever a time you would want to overwrite production data with your local testing data. (and therefore, no tool that I know about to do it with) -- * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to

Re: [capistrano] database doesn't migrate to ec2 production server http://passionate4.net/

2011-12-07 Thread Donovan Bray
Cap doesn't do either of the commands below by default. You have to define tasks that run them that are hooked into an appropriate part of your deploy chain. Also remember you need to specify the rails env when you run rake tasks on environments other than development. On Dec 6, 2011, at

Re: [capistrano] database doesn't migrate to ec2 production server http://passionate4.net/

2011-12-07 Thread sukoonchd9
Rake db:seeds , provide sample data for development environment only, How can we transfer the data to production via Capistrano? Jay On Dec 7, 2011, at 8:08 AM, Donovan Bray donno...@gmail.com wrote: rake db:seeds is usually used for this purpose But it depends on your application

Re: [capistrano] database doesn't migrate to ec2 production server http://passionate4.net/

2011-12-07 Thread jay parteek
In my development environment when i ran $rails g spree:site (per spree documentation) is an alternative for - $ bundle exec rake db:migrate $ bundle exec rake db:seed These above commands generate couple of sample data and admin functionality. How can i run same above command/s on

Re: [capistrano] switch using gateway or not depend on servers

2011-12-07 Thread Rafa GarcĂ­a
I've never done it but there's a pull request relatid with your problem: https://github.com/capistrano/capistrano/pull/18 So I think it should works :) 2011/12/6 Donovan Bray donno...@gmail.com You know now that I look at my code and scripts i think it just appears to work for me, because