Azure Webapp Ruby部署

时间:2018-02-06 01:13:20

标签: ruby-on-rails ruby git azure azure-web-app-service

仔细阅读所有Azure教程后,我无法部署我的应用程序。

我使用了以下步骤:

  1. 使用Ruby 2.3容器从Azure Portal Linux创建新的Web应用程序
  2. 使用用户名和密码配置本地git存储库
  3. 来自Microsoft tutorial以及此repo
  4. 的来自Microsoft的hello-workd
  5. 重新启动Web App后,我收到了消息:

    Service Unavailable
    
  6. 我无法使用SSH连接,但是,使用Kudu,我能够检查日志文件。显然,这个问题与Ruby依赖关系有关,但我不知道如何解决。

    2018-02-06 00:54:43.965 INFO  - Logging is not enabled for this container.
    Please use https://aka.ms/linux-diagnostics to enable logging to see container logs here.
    2018-02-06 00:54:48.292 INFO  - Container logs
    2018-02-06T00:54:45.106381390Z Starting OpenBSD Secure Shell server: sshd.
    2018-02-06T00:54:45.313181989Z Bundle install with no 'without' options
    2018-02-06T00:54:45.313337691Z Defaulting gem installation directory to /tmp/bundle
    2018-02-06T00:54:45.313459292Z Defaulting site config directory to /home/site/config
    2018-02-06T00:54:45.313575793Z Generating a secret key base
    2018-02-06T00:54:45.641497487Z RAILS_ENV set to production
    2018-02-06T00:54:45.641616888Z Removing any leftover pids if present
    2018-02-06T00:54:45.649293251Z Running bundle check
    2018-02-06T00:54:45.649606153Z /opt/startup.sh: line 67: [: : integer expression expected
    2018-02-06T00:54:46.700604188Z You are replacing the current local value of path, which is currently "/home/site/wwwroot/vendor/bundle"
    2018-02-06T00:54:47.793612367Z missing dependencies, try redeploying
    
    2018-02-06 00:54:48.293 ERROR - Container xxx for site xxx has exited, failing site start
    

    有人确实通过这个吗? 我怀疑可能与某些应用程序配置有关,但据我所知,它是可选的。

0 个答案:

没有答案