我正在尝试将激活器应用程序部署到Heroku。没有Proc-file Heroku告诉我没有检测到雪松应用程序。当我添加一个Proc文件并添加
web: ./activator start -Dhttp.port=${PORT}
启动失败。
如何让它在Heroku上运行?
更新 问题是(尚未需要)package.json。 Heroku明显被该文件所感染,它是一个node.js应用程序。在没有Proc文件的情况下重命名app startet。但现在我得到了
的未解决的依赖关系[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.play#play_2.11;2.3.2: not found
[warn] :: com.typesafe.play#play-jdbc_2.11;2.3.2: not found
[warn] :: com.atlassian.jwt#jwt-core;1.2.3: not found
[warn] :: com.atlassian.jwt#jwt-api;1.2.3: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
并通过添加
解决了这个问题resolvers += "typesafe" at "http://repo.typesafe.com/typesafe/releases/"
然后我遇到了我们使用SASS的问题,Heroku不支持它。所以我尝试通过sbt plugin进行部署。这导致了以下问题:
[error] (fashion-advice-common/compile:deployHeroku) You must stage your application before deploying it!
[error] (fashion-advice-customer/compile:deployHeroku) Could not find app ''. Check that herokuAppName setting is correct.
[error] (fashion-advice-stylist/compile:deployHeroku) Could not find app ''. Check that herokuAppName setting is correct.
也许是因为我们使用3个子模块?
答案 0 :(得分:1)