Hello, I have a simple question about creating rails applications. I am signing up with dreamhost so that i can put my rails apps on the web (after giving up on trying to make my current VPS Plesk hosting work with rails). My main question is: when creating a new rails app, can i create it using the rails command on my computer and then upload the entire directory structure to my domain account on dreamhost? I guess i''m making sure that i dont have to *create the app using ssh to dreamhost and i can do it all locally and then just FTP it up. I know this seems basic but i am new as you can tell. Thanks, Nate -- Posted via http://www.ruby-forum.com/.
Nate, Based on my experience with Dreamhost, you should still use the rails command then upload only selected portions of the directory from your local machine. There are things in the Dreamhost directory structure that should not be overwritten, like the dispatch.fcgi, etc. I usually upload the entire app dir, db dir, and everything in public aside from diaptch.*. Hope that helps. Nathan -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Nate Constant Sent: Thursday, May 25, 2006 3:03 PM To: rails@lists.rubyonrails.org Subject: [Rails] question about creating rails app and FTP Hello, I have a simple question about creating rails applications. I am signing up with dreamhost so that i can put my rails apps on the web (after giving up on trying to make my current VPS Plesk hosting work with rails). My main question is: when creating a new rails app, can i create it using the rails command on my computer and then upload the entire directory structure to my domain account on dreamhost? I guess i''m making sure that i dont have to *create the app using ssh to dreamhost and i can do it all locally and then just FTP it up. I know this seems basic but i am new as you can tell. Thanks, Nate -- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
Nate Constant
2006-May-25 21:25 UTC
[Rails] Re: RE: question about creating rails app and FTP
Nathan Leach wrote:> Nate, > > Based on my experience with Dreamhost, you should still use the rails > command then upload only selected portions of the directory from your > local machine. > > NathanNathan, So i would run the rails command through ssh on the dreamhost machine AND run the rails command on my computer; but then upload my files in those three directories when they change? What about the generage script for models and controllers? I''m assuming that when those get ran they dont make any changes to the dispatch files, right? so i should just be able to upload the app directory when i create a new model or controller on my machine without running the generate script on the dreamhost machine? I''m sorry if this sounds too detailed, i just want to be sure. Thanks again for the reply! Nate -- Posted via http://www.ruby-forum.com/.
Nathan Leach
2006-May-25 21:38 UTC
[Rails] Re: RE: question about creating rails app and FTP
Nate, Here''s what I do, but you will have to test it out to see if it works for you... 1. Run "rails foo" on my machine, and develop my app 2. Run "rails foo" on Dreamhost via SSH, then update config files manually (database.yml, environment.rb, etc.) 3. FTP directories "app", "db", and "public" excluding dispatch.* files 4. Migrate database on Dreamhost 5. Enjoy new hosted app ;-) Let me know if that works or if you have questions. Nathan -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Nate Constant Sent: Thursday, May 25, 2006 4:24 PM To: rails@lists.rubyonrails.org Subject: [Rails] Re: RE: question about creating rails app and FTP Nathan Leach wrote:> Nate, > > Based on my experience with Dreamhost, you should still use the rails > command then upload only selected portions of the directory from your > local machine. > > NathanNathan, So i would run the rails command through ssh on the dreamhost machine AND run the rails command on my computer; but then upload my files in those three directories when they change? What about the generage script for models and controllers? I''m assuming that when those get ran they dont make any changes to the dispatch files, right? so i should just be able to upload the app directory when i create a new model or controller on my machine without running the generate script on the dreamhost machine? I''m sorry if this sounds too detailed, i just want to be sure. Thanks again for the reply! Nate -- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
Nate Constant
2006-May-25 22:55 UTC
[Rails] RE: Re: RE: question about creating rails app and FTP
Nathan Leach wrote:> Nate, > > Here''s what I do, but you will have to test it out to see if it works > for you... > > 1. Run "rails foo" on my machine, and develop my app > 2. Run "rails foo" on Dreamhost via SSH, then update config files > manually (database.yml, environment.rb, etc.) > 3. FTP directories "app", "db", and "public" excluding dispatch.* files > 4. Migrate database on Dreamhost > 5. Enjoy new hosted app ;-) > > Let me know if that works or if you have questions. > > NathanPerfect, that''s exactly what i was looking for! Thanks again, Nate -- Posted via http://www.ruby-forum.com/.