简体   繁体   English

Heroku将Play推入我的Rails应用

[英]Heroku Pushing My Rails app as Play

I have a rails app called MBAToolbox. 我有一个名为MBAToolbox的Rails应用程序。 When I enter the directory and type "play", I get the following: 当我进入目录并键入“ play”时,得到以下信息:

This is not a play application! 这不是一个播放应用程序!

That's good! 那很好! Now I type rails c and I am entered into the rails command line. 现在,我输入rails c,然后进入rails命令行。 Clearly this is a rails app. 显然,这是一个Rails应用程序。 But when I type 'heroku create' and push 'git push heroku master', heroku tries to deploy this as a 'play' app? 但是,当我键入“ heroku create”并按下“ git push heroku master”时,heroku会尝试将其部署为“播放”应用程序吗?

I saw on their site that Heroku states: 我在他们的网站上看到Heroku指出:

Heroku Play framework support will be applied to applications that match: Heroku Play框架支持将应用于符合以下条件的应用程序:
*/conf/application.conf in any directory except for the modules directory , when determining to use Play. * / conf / application.conf,位于模块目录之外的任何目录中,当决定使用Play时。

I don't have that. 我没有那个 My directory is as follows: 我的目录如下:

drwxr-xr-x  21 admin  staff   714 Mar 22 00:20 .
drwxr-xr-x  26 admin  staff   884 Mar 21 21:39 ..
-rw-r--r--@  1 admin  staff  6148 Mar 21 23:37 .DS_Store
-rw-r--r--   1 admin  staff   430 Mar 21 21:39 .gitignore
drwxr-xr-x  12 admin  staff   408 Mar 22 00:22 .idea
-rw-r--r--   1 admin  staff   935 Mar 21 22:38 Gemfile
-rw-r--r--   1 admin  staff  3884 Mar 21 22:38 Gemfile.lock
-rw-r--r--   1 admin  staff  9208 Mar 21 21:39 README.rdoc
-rw-r--r--   1 admin  staff   275 Mar 21 21:39 Rakefile
drwxr-xr-x   9 admin  staff   306 Mar 21 21:57 app
drwxr-xr-x  10 admin  staff   340 Mar 21 21:56 config
-rw-r--r--   1 admin  staff   160 Mar 21 21:39 config.ru
drwxr-xr-x   6 admin  staff   204 Mar 22 00:06 db
drwxr-xr-x   3 admin  staff   102 Mar 21 21:39 doc
drwxr-xr-x   5 admin  staff   170 Mar 21 21:48 lib
drwxr-xr-x   4 admin  staff   136 Mar 21 21:39 log
drwxr-xr-x   9 admin  staff   306 Mar 21 23:37 public
drwxr-xr-x   3 admin  staff   102 Mar 21 21:39 script
drwxr-xr-x   8 admin  staff   272 Mar 21 21:39 test
drwxr-xr-x   6 admin  staff   204 Mar 21 21:53 tmp
drwxr-xr-x   4 admin  staff   136 Mar 21 21:39 vendor

Thoughts? 思考?

This article on the Heroku dev site covers both ends of this. Heroku开发人员站点上的这篇文章涵盖了这两个方面。 It has a pointer to the actual source of the Play buildpack, so you can read the code that figures out which buildpack to use. 它具有指向Play buildpack实际来源的指针,因此您可以阅读指出要使用哪个buildpack的代码。 You can also explicitly pick the Rails buildpack instead. 您也可以显式选择Rails buildpack。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM