Forum: Ruby on Rails setting up remote rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2a77812997b46aac0af6a955d654f930?d=identicon&s=25 The Dro (Guest)
on 2009-02-11 22:52
(Received via mailing list)
I've got a remote machine on my network which has Ubuntu as the OS. I
run my testserver on it with all my current PHP sites. All I have to
type on my main Vista Machine as the URL is "http://testserver" and it
takes me to the index page i've created with links to all my sites on
that remote Ubuntu machine.

My question is:
I've setup RoR on that machine, but when I type testserver:3000 it
wont access that page. On the machine itself, I am able to see my RoR
project, but not on my main machine. I'm even able to SSH into the
testserver to work on the project files. How do I go about setting
that up?

My second Question is, Where are the config files to tell RoR to use
the MySQL database I currently have setup on the testserver that
phpmyadmin is also using? I have edited the database.yml file to
include the correct login information and the mysql adapter but it's
still not connecting properly to the database. Is there a certain file
I can setup the paths in for my MySQL db?

thanks in advance for your assistance,
-dro
23ae9e75998020bacd139c7a5da311fc?d=identicon&s=25 David Herman (Guest)
on 2009-02-11 22:54
(Received via mailing list)
Have you installed the MySQL gem?
4c438a80fc30661ad619ea177cf9cbd0?d=identicon&s=25 Freddy Andersen (Guest)
on 2009-02-12 01:05
(Received via mailing list)
- Does the server have firewall?

What does your database.yml look like?

---
production:
  username: mysql_user
  adapter: mysql
  port: 3306
  host: 127.0.0.1
  password: mysql_password
  database: my_database
Ca0d1fa83b8d8f39a51c0f25b0f17336?d=identicon&s=25 Mathieu Rousseau (Guest)
on 2009-02-12 11:31
(Received via mailing list)
who did you start your ror server? which one are you using?
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-02-12 12:18
(Received via mailing list)
1
you might want to configure your apache (or whatever webserver you
use) to forward your mongrel on port 3000.
look for something like this (for your webserver and operation
system):
http://schwuk.com/articles/2006/06/13/hosting-rail...

2
as long as your database.yml is configured correctly you only need to
make sure that you have sufficient rights to access that database. run
  mysql -uroot -ppassword
and adjust settings (e.g. create database, grant access for chosen
user,...)
This topic is locked and can not be replied to.