1

我对 RoR 世界很陌生(3 天),我面临以下问题:我在 OVH 上有一个共享主机,我必须在上面部署我的 Rails 应用程序,我该怎么做?

我只能使用 FTP 协议访问包含 www 目录的文件夹。没有 SSH 连接。

如何部署它只有一个提示,但它不起作用: http ://help.ovh.co.uk/RubyOnRails 。当我按照说明进行操作时,InstantRails 不会在主根目录中创建任何 .htaccess。

一些对Rails 世界有经验的人可以帮助我吗?

PS:OVH 不提供Passenger、Capistrano 等。

感谢你!!

4

2 回答 2

1

根据我的经验,在共享托管环境中托管全栈 Rails 应用程序几乎是不可能的,您可以安装的 gem 和可以使用的 Web 服务器有很多限制。

如果可以的话,您应该考虑使用 PaaS,例如 Heroku、Engineyard 或 OpenShift。或者,如果您对 linux 环境感到满意 - VPS。

于 2013-04-07T21:28:48.900 回答
0

你可以,但你不能安装 gem,这是安装的 gem 列表

$ gem list

*** LOCAL GEMS ***

actionmailer (4.1.8)
actionpack (4.1.8)
actionview (4.1.8)
activemodel (4.1.8)
activerecord (4.1.8)
activesupport (4.1.8)
arel (5.0.1.20140414130214)
atomic (1.1.16)
bigdecimal (1.2.4)
builder (3.2.2)
bundler (1.7.4)
celluloid (0.15.2)
cmdparse (2.0.6)
coffee-rails (4.0.1)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
daemons (1.1.9)
erubis (2.7.0)
execjs (2.2.1)
ffi (1.9.6)
hike (1.2.1)
i18n (0.6.9)
io-console (0.4.2)
jbuilder (2.1.3)
jquery-rails (3.1.2)
json (1.8.1)
listen (2.4.0)
log4r (1.1.10)
mail (2.6.1)
metaclass (0.0.4)
mime-types (1.25)
minitest (5.4.2, 4.7.5)
mocha (1.1.0)
multi_json (1.10.1)
ncursesw (1.4.8)
net-http-persistent (2.9)
oj (2.10.3)
polyglot (0.3.4)
psych (2.0.5)
rack (1.5.2)
rack-test (0.6.2)
rails (4.1.8)
railties (4.1.8)
rake (10.3.2, 10.1.0)
rb-inotify (0.9.5)
rdoc (4.1.0)
RedCloth (4.2.9)
ruby-shadow (2.3.4)
sass (3.4.6)
sass-rails (4.0.3)
sdoc (0.4.1)
spring (1.1.3)
sprockets (2.12.3)
sprockets-rails (2.1.3)
sqlite3 (1.3.9)
test-unit (2.1.5.0)
thor (0.19.1)
thread_safe (0.3.3)
tilt (1.4.1)
timers (1.1.0)
treetop (1.4.15)
turbolinks (2.2.2)
tzinfo (1.1.0)
uglifier (2.5.3)
yajl-ruby (1.2.0)
于 2018-07-17T21:01:08.610 回答