[prog] Basic Ruby question - creating apps without shell access
akkana at shallowsky.com
Fri Apr 7 07:08:31 EST 2006
Laurel Fan writes:
> On 4/6/06, April <april at farstrider.org> wrote:
> > My webhost does not give me shell access. I would like to create a new
> > ruby on rails web app. All of my tutorials say to type "rails
> > appname"... My webhost says they have ruby on rails on the server... but
> > how do I use it?
> The rails command just sets up the directory structure and some files
> to use. You can set up the files on your own machine (using the rails
> command), and then upload it to where it needs to be.
It'll probably be easiest to test your app on your own machine
as well as setting up the directory structure there. That way
you'll be able to run tests, read the server output and so forth
as you're debugging.
Once you're finished debugging and have copied the files to the
server, you can run it as a CGI: Rails will likely make a
public/.htaccess file for you which makes that work automatically
whenever you access URLs inside your_rails_app_dir/public.
More information about the Programming