R
R
Robert Koval2016-11-30 23:56:40
Ruby on Rails
Robert Koval, 2016-11-30 23:56:40

How to connect virtual hosting database to rails?

Hello.

-> There is a virtual hosting with a database (MySQL, PostgreSQL) on it
--> Access from outside to the database is closed.

-> There is a rails project that needs to be connected to the hosting database. (similar to heroku, link)

How to connect rails and database? Is it possible at all?

I thought about a "relay" in php (rails -> php -> db), but I don't know if this is possible.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2016-12-01
@opium

Yes, of course, everything will work through the repeater

V
Vayladion Gognazdiak, 2016-12-01
@etspring

What is the problem with ssh tunnel or ipsec/vpn?
Or is there generally only one web muzzle and that's it?

D
dan lar, 2018-05-31
@vortx

The repeater is interesting, but from a large flow of requests, there will be losses and lags, the load on the server will increase. Better as suggested to configure vpn or ipsec. In general, it is good to see the whole picture and the goal.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question