running rails on guest linux virtualbox: a database.yml issue -


a) i'm ruby in rails beginner developer, , use windows 7 machine developement environment...

b) virtualbox installed, inside windows 7 "host", linux ubuntu sever "guest", run rails development environment in linux machine.

c) configured virtualbox shared folder: let have shared folder on host machine (window):

c:\rails\esamianatomia

and mounted on linux embedded server:

/home/solyaris/host/esamianatomia

d) in exptended "developement environment" edit source files preferred visual editor on windows (sublime text) , run rails server on linux.

the problem concern database.yml configuration file:

/home/solyaris/host/esamianatomia/config/database.yml

because on windows have database (postgresql) responding port 5433, specific username/password

but in linux database respond port 5432, etc.

questions:

1) it's "arcgitectural solution ok ? (i mean: developing/editing windows 7 host, running rails server of linux guest server);

2) there way change/configure database.yml on fly (i mean: using 2 different database.yml files: 1 linux machine , anotherone window machine) ?

thanks lot giorgio

what describing pretty setup vagrant offering, yeah, doing fine, else doing didn't set (and nice addons well, should take @ vagrant).

for second question: no. not on fly. rails loads database.yml end connects database that. when change while rails server running, changes won't noticed. can setup new environment 2 different machines. can switch between different environments , depending on environment, 1 or other database gets accessed.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -