【问题标题】:Deploying a Rails App to GCE with Passenger, but only seeing the app's file directory使用Passenger将Rails应用程序部署到GCE,但只能看到应用程序的文件目录
【发布时间】:2015-03-10 16:40:32
【问题描述】:

我正在使用 Google Cloud Engine ruby​​ 堆栈,它在 Debian 7 上使用 RVM 和Passenger。按照Passenger 配置手册进行操作后,当我导航到服务器根目录时,我只看到应用程序文件的目录。

这里是 /etc/apache2/apache2.conf

<VirtualHost *:80>
       ServerName http://130.211.149.208
       DocumentRoot /var/www/myapp
       <Directory /var/www/myapp>
          Allow from all
          Options -MultiViews
          # Uncomment this if you're on Apache >= 2.4:
          #Require all granted
    </Directory>
</VirtualHost>

【问题讨论】:

    标签: ruby-on-rails google-app-engine passenger


    【解决方案1】:

    想通了。问题是/var/www/myapp 应该是/var/www/myapp/public

    【讨论】:

      猜你喜欢
      • 2013-06-22
      • 2013-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-06
      • 2018-08-05
      • 1970-01-01
      • 2023-03-29
      相关资源
      最近更新 更多