我原来是一个java项目,它是一个单独的Clock GUI类,在构建路径上没有其他个人项目。 我在链接中一步一步地遵循指南 How to convert existing Java Project to Maven in Eclipse? 我的pom.xml文件粘贴在下面:
File "C:\Program Files\Anaconda3\lib\site-packages\pandas\core\ops.py", line 686, in <lambda>
lambda x: op(x, rvalues))
TypeError: unsupported operand type(s) for -: 'str' and 'str'
&#13;
然后我按照链接中的步骤进行操作:Deploy the app 。我的procfile是这样的:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ClockGUI</groupId>
<artifactId>ClockGUI</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ClockGUI</name>
<description>this is used to try converting java to maven then to heroku</description>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source/>
<target/>
</configuration>
</plugin>
</plugins>
</build>
</project>
我还添加了我的procfile
进入根目录并通过运行推送所有内容:
web: java -jar target/ClockGUI-0.0.1-SNAPSHOT.jar
然后我运行了命令:
git push heroku master
结果说:
heroku ps:scale web=1
但是,当我运行Scaling dynos... done, now running web at 1:Free
时
这是行不通的。日志显示heroku open
但它也说
Build Succeeded
有人可以让我知道如何解决问题,让项目在heroku上运行吗?
编辑: H14错误之前的日志中的消息是:
2017-05-15T01:42:46.898625+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=clockgui-8872.herokuapp.com request_id=74b60a3e-a14a-4d6e-a90e-02d77a06e7fd fwd="64.134.102.229" dyno= connect= service= status=503 bytes= protocol=https
2017-05-15T01:42:47.255638+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=clockgui-8872.herokuapp.com request_id=def81c28-c934-4757-8b6b-8206bad6b82e fwd="64.134.102.229" dyno= connect= service= status=503 bytes= protocol=https
并运行&#34; heroku ps&#34;分发:
2017-05-15T01:39:59.786432+00:00 app[api]: Release v1 created by user modredlancelot@gmail.com
2017-05-15T01:40:00.078284+00:00 app[api]: Release v2 created by user modredlancelot@gmail.com
2017-05-15T01:40:00.078284+00:00 app[api]: Enable Logplex by user modredlancelot@gmail.com
2017-05-15T01:40:22.000000+00:00 app[api]: Build started by user modredlancelot@gmail.com
2017-05-15T01:40:44.609711+00:00 app[api]: Deploy 23f03d9 by user modredlancelot@gmail.com
2017-05-15T01:40:44.609711+00:00 app[api]: Release v3 created by user modredlancelot@gmail.com
2017-05-15T01:40:22.000000+00:00 app[api]: Build succeeded
Free dyno hours quota remaining this month: 550h 0m (100%)
For more information on dyno sleeping and how to upgrade, see:
ht tps://devcenter.heroku.com/articles/dyno-sleeping
我前几天用控制台打开了目录,然后运行
=== web (Free): java -jar target/ClockGUI-0.0.1-SNAPSHOT.jar (1)
web.1: crashed 2017/05/15 21:29:47 -0400 (~ 1h ago)
错误消息更改为:
heroku logs -t