- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个包含 4 个模块的 Maven 应用程序。我正在将该应用程序部署到 heroku。我使用 Tomcat 9.0.29,Java 8。本地一切正常,但 heroku 上有一个错误。问题是,我什至不知道它是什么。错误在哪里?会不会有人帮帮我?
2019-12-08T20:36:20.143115+00:00 app[web.1]: variable.
2019-12-08T20:36:20.143117+00:00 app[web.1]: --bind-on-init
2019-12-08T20:36:20.143119+00:00 app[web.1]: Controls when the socket used by the connector is bound. By default it
2019-12-08T20:36:20.143121+00:00 app[web.1]: is bound when the connector is initiated and unbound when the connector
2019-12-08T20:36:20.143123+00:00 app[web.1]: is destroyed., default value: true
2019-12-08T20:36:20.143125+00:00 app[web.1]: Default: true
2019-12-08T20:36:20.143126+00:00 app[web.1]: --compressable-mime-types
2019-12-08T20:36:20.143129+00:00 app[web.1]: Comma delimited list of mime types that will be compressed when using
2019-12-08T20:36:20.143131+00:00 app[web.1]: GZIP compression.
2019-12-08T20:36:20.143134+00:00 app[web.1]: Default: text/html,text/xml,text/plain,text/css,application/json,application/xml,text/javascript,application/javascript
2019-12-08T20:36:20.143136+00:00 app[web.1]: --context-xml
2019-12-08T20:36:20.143138+00:00 app[web.1]: The path to the context xml to use.
2019-12-08T20:36:20.143140+00:00 app[web.1]: --enable-basic-auth
2019-12-08T20:36:20.143142+00:00 app[web.1]: Secure the app with basic auth. Use with --basic-auth-user and
2019-12-08T20:36:20.143144+00:00 app[web.1]: --basic-auth-pw or --tomcat-users-location
2019-12-08T20:36:20.143146+00:00 app[web.1]: Default: false
2019-12-08T20:36:20.143148+00:00 app[web.1]: --enable-client-auth
2019-12-08T20:36:20.143150+00:00 app[web.1]: Specify -Djavax.net.ssl.keyStore and -Djavax.net.ssl.keyStorePassword in
2019-12-08T20:36:20.143151+00:00 app[web.1]: JAVA_OPTS
2019-12-08T20:36:20.143153+00:00 app[web.1]: Default: false
2019-12-08T20:36:20.143155+00:00 app[web.1]: --enable-compression
2019-12-08T20:36:20.143157+00:00 app[web.1]: Enable GZIP compression on responses
2019-12-08T20:36:20.143159+00:00 app[web.1]: Default: false
2019-12-08T20:36:20.143161+00:00 app[web.1]: --enable-naming
2019-12-08T20:36:20.143162+00:00 app[web.1]: Enables JNDI naming
2019-12-08T20:36:20.143165+00:00 app[web.1]: Default: false
2019-12-08T20:36:20.143166+00:00 app[web.1]: --enable-ssl
2019-12-08T20:36:20.143168+00:00 app[web.1]: Specify -Djavax.net.ssl.keyStore, -Djavax.net.ssl.keystoreStorePassword,
2019-12-08T20:36:20.143171+00:00 app[web.1]: -Djavax.net.ssl.trustStore and -Djavax.net.ssl.trustStorePassword in
2019-12-08T20:36:20.143173+00:00 app[web.1]: JAVA_OPTS. Note: should not be used if a reverse proxy is terminating
2019-12-08T20:36:20.143175+00:00 app[web.1]: SSL for you (such as on Heroku)
2019-12-08T20:36:20.143177+00:00 app[web.1]: Default: false
2019-12-08T20:36:20.143179+00:00 app[web.1]: --expand-war-file
2019-12-08T20:36:20.143181+00:00 app[web.1]: Expand the war file and set it as source
2019-12-08T20:36:20.143183+00:00 app[web.1]: Default: true
2019-12-08T20:36:20.143185+00:00 app[web.1]: --expanded-dir-name
2019-12-08T20:36:20.143187+00:00 app[web.1]: The name of the directory the WAR file will be expanded into.
2019-12-08T20:36:20.143189+00:00 app[web.1]: Default: expanded
2019-12-08T20:36:20.143191+00:00 app[web.1]: --help
2019-12-08T20:36:20.143193+00:00 app[web.1]:
2019-12-08T20:36:20.143195+00:00 app[web.1]: --max-threads
2019-12-08T20:36:20.143197+00:00 app[web.1]: Set the maximum number of worker threads
2019-12-08T20:36:20.143200+00:00 app[web.1]: Default: 0
2019-12-08T20:36:20.143202+00:00 app[web.1]: --memcached-transcoder-factory-class
2019-12-08T20:36:20.143204+00:00 app[web.1]: The class name of the factory that creates the transcoder to use for
2019-12-08T20:36:20.143206+00:00 app[web.1]: serializing/deserializing sessions to/from memcached.
2019-12-08T20:36:20.143208+00:00 app[web.1]: --path
2019-12-08T20:36:20.143210+00:00 app[web.1]: The context path
2019-12-08T20:36:20.143212+00:00 app[web.1]: Default: <empty string>
2019-12-08T20:36:20.143214+00:00 app[web.1]: --port
2019-12-08T20:36:20.143216+00:00 app[web.1]: The port that the server will accept http requests on.
2019-12-08T20:36:20.143218+00:00 app[web.1]: Default: 8080
2019-12-08T20:36:20.143220+00:00 app[web.1]: --proxy-base-url
2019-12-08T20:36:20.143222+00:00 app[web.1]: Set proxy URL if tomcat is running behind reverse proxy
2019-12-08T20:36:20.143224+00:00 app[web.1]: Default: <empty string>
2019-12-08T20:36:20.143226+00:00 app[web.1]: --scanBootstrapClassPath
2019-12-08T20:36:20.143228+00:00 app[web.1]: Set jar scanner scan bootstrap classpath.
2019-12-08T20:36:20.143230+00:00 app[web.1]: Default: false
2019-12-08T20:36:20.143232+00:00 app[web.1]: --session-store
2019-12-08T20:36:20.143234+00:00 app[web.1]: Session store to use (valid options are 'memcache' or 'redis')
2019-12-08T20:36:20.143236+00:00 app[web.1]: --session-store-ignore-pattern
2019-12-08T20:36:20.143238+00:00 app[web.1]: Request pattern to not track sessions for. Valid only with memcache
2019-12-08T20:36:20.143240+00:00 app[web.1]: session store. (default is '.*\.(png|gif|jpg|css|js)$'. Has no effect
2019-12-08T20:36:20.143241+00:00 app[web.1]: for 'redis')
2019-12-08T20:36:20.143244+00:00 app[web.1]: Default: .*\.(png|gif|jpg|css|js)$
2019-12-08T20:36:20.143246+00:00 app[web.1]: --session-store-locking-mode
2019-12-08T20:36:20.143247+00:00 app[web.1]: Session locking mode for use with memcache session store. (default is
2019-12-08T20:36:20.143249+00:00 app[web.1]: all. Has no effect for 'redis')
2019-12-08T20:36:20.143251+00:00 app[web.1]: Default: all
2019-12-08T20:36:20.143253+00:00 app[web.1]: --session-store-operation-timeout
2019-12-08T20:36:20.143255+00:00 app[web.1]: Operation timeout for the memcache session store. (default is 5000ms)
2019-12-08T20:36:20.143257+00:00 app[web.1]: Default: 5000
2019-12-08T20:36:20.143279+00:00 app[web.1]: --session-store-pool-size
2019-12-08T20:36:20.143283+00:00 app[web.1]: Pool size of the session store connections (default is 10. Has no effect
2019-12-08T20:36:20.143285+00:00 app[web.1]: for 'memcache')
2019-12-08T20:36:20.143287+00:00 app[web.1]: Default: 10
2019-12-08T20:36:20.143289+00:00 app[web.1]: --session-timeout
2019-12-08T20:36:20.143291+00:00 app[web.1]: The number of minutes of inactivity before a user's session is timed
2019-12-08T20:36:20.143293+00:00 app[web.1]: out.
2019-12-08T20:36:20.143295+00:00 app[web.1]: --shutdown-override
2019-12-08T20:36:20.143296+00:00 app[web.1]: Overrides the default behavior and casues Tomcat to ignore lifecycle
2019-12-08T20:36:20.143299+00:00 app[web.1]: failure events rather than shutting down when they occur.
2019-12-08T20:36:20.143300+00:00 app[web.1]: Default: false
2019-12-08T20:36:20.143303+00:00 app[web.1]: --temp-directory
2019-12-08T20:36:20.143304+00:00 app[web.1]: Define the temp directory, default value: ./target/tomcat.PORT
2019-12-08T20:36:20.143306+00:00 app[web.1]: --tomcat-users-location
2019-12-08T20:36:20.143308+00:00 app[web.1]: Location of the tomcat-users.xml file. (relative to the location of the
2019-12-08T20:36:20.143310+00:00 app[web.1]: webapp-runner jar file)
2019-12-08T20:36:20.143312+00:00 app[web.1]: --uri-encoding
2019-12-08T20:36:20.143314+00:00 app[web.1]: Set the URI encoding to be used for the Connector.
2019-12-08T20:36:20.143316+00:00 app[web.1]: --use-body-encoding-for-uri
2019-12-08T20:36:20.143325+00:00 app[web.1]: Set if the entity body encoding should be used for the URI.
2019-12-08T20:36:20.143327+00:00 app[web.1]: Default: false
2019-12-08T20:36:20.143329+00:00 app[web.1]: -A
2019-12-08T20:36:20.143331+00:00 app[web.1]: Allows setting HTTP connector attributes. For example: -Acompression=on
2019-12-08T20:36:20.143333+00:00 app[web.1]: Syntax: -Akey=value
2019-12-08T20:36:20.143335+00:00 app[web.1]: Default: {}
2019-12-08T20:36:20.143336+00:00 app[web.1]:
2019-12-08T20:36:20.223662+00:00 heroku[web.1]: State changed from starting to crashed
2019-12-08T20:36:20.204740+00:00 heroku[web.1]: Process exited with status 1
从 heroku 网站 Heroku 获取的配置文件
web: java $JAVA_OPTS -jar target/dependency/webapp-runner.jar --port $PORT target/*.war'
Pom文件
<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>com/jj</groupId>
<artifactId>hi</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<modules>
<module>common</module>
<module>dao</module>
<module>service</module>
<module>web</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals><goal>copy</goal></goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.github.jsimone</groupId>
<artifactId>webapp-runner</artifactId>
<version>9.0.27.0</version>
<destFileName>webapp-runner.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<project.java.version>1.8</project.java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.3.160</version>
</dependency>
<!-- Servlet API 4.0 for tomcat 9 -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.15</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.6.0-M1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>```
最佳答案
您看到的是 webapp-runner 的“帮助”输出。我认为这表明 webapp-runner.jar
的参数不正确。
您的 Procfile
命令末尾似乎有一个杂散的 '
字符。您可能需要删除它。
关于java - 使用 Tomcat 和 Mysql 将应用程序部署到 Heroku 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59239991/
我正在尝试使用 Heroku Scheduler 在已部署的 Heroku 应用程序中调用 HTTP 端点,它基本上以固定速率在 Heroku bash 上运行命令。 当我运行 $ heroku ru
我有一个在 Heroku 上运行的应用程序,其中有一些我想不时更改的设置,并且我想使用 Heroku 配置变量来存储这些设置,以便它们持久存在。 我知道我可以从 Heroku 仪表板或 Heroku
我从模板 reagent-frontend 创建了一个 ClojureScript Reagent 应用程序。如何将生产应用程序部署到 Heroku?在为生产构建后(lein package/lein
我正在尝试在 heroku 上添加信用卡,然后消息显示“无法验证您的卡,请稍后再试或联系您的金融机构寻求帮助” 最佳答案 这是因为您的银行拒绝付款。 检查您是否输入了所有正确的详细信息 查看您银行的最
首先为我的英语感到抱歉,因为它不是我的母语,我不习惯它,它可能很难理解。 我正在尝试将我的 spike 应用程序连接到 heroku 以获取长期葡萄糖数据。 我在没有“部署分支”步骤的情况下成功完成了
Ec2 实例小时按小时计算。如果你只是启动和关闭一个实例,它仍然算作一小时。 Heroku 如何处理这个?按分钟还是按小时? 让我们假设我的应用程序使用超过 750 免费 Dyno 小时限制 最佳答案
好奇 heroku 如何创建应用程序名称。应用程序名称通常是英文单词,例如bloom-peaks 或formal-trail。一家大公司的 IT 部门也是如此。是否有用于名称生成的 unix 库? 最
有没有人在 Heroku 上成功使用过 docsplit?它有许多二进制依赖项。我已经搜索过,但没有找到任何人这样做。教程会很棒,但我真的很好奇其他人是否成功。 最佳答案 我的搜索没有找到任何做过这件
我想将一个应用程序部署到需要能够生成加密安全随机数的 heroku。我可以使用哪些熵源? 最佳答案 你的 Heroku dyno 基本上是一个 Ubuntu 服务器虚拟机,所以你应该可以访问 /dev
Heroku 可以显示自定义维护页面: heroku config:set MAINTENANCE_PAGE_URL=http://some_server/my_page.html 这需要某些网站的存
我正在开始使用 Heroku,并担心它是否会因我犯的错误而向我收费。例如,填充数据库超过 5MB。 那么,有没有办法为 Heroku 或通知系统设置计费限制,以便在我超过价格限制时发送通知? 先感谢您
如何更新我的 Heroku ,我的 Windows 终端显示以下内容: » Warning: heroku update available from 7.47.7 to 7.52.0. 请帮忙
我在免费的 Dyno 上运行基于 NodeJS 的应用程序,连接到 mongohq-MongoDB。我想迁移它以使用爱好 Dyno,这样做的动机不仅是避免 sleep 时间,而且是为了实现更高的 HT
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 9年前关闭。 Improve this q
如何将我的生产数据库拉到 heroku 上的暂存服务器? 我有两个 Remote ,production 和 staging。 来自documentation看来我想运行 heroku pg:copy
我有一个域example.com,我想将它用于位于example.herokuapp.com 的rails-app,我很困惑如何去做。 Heroku says "Zone apex domains (
我有一个 sinatra 应用程序,其中有一个 yml 文件来设置环境变量,我使用此方法调用它们 module MyConfig def config environment = ENV["RA
根据各种因素,一整天中,我的应用程序的负载可能会出现非常极端的增加。 那时,我想自动增加测功机的数量。 我想增加加载时间。因此,如果加载页面需要X倍的时间,请增加测功力。否则,请往下走。 这样的东西存
我想知道使用heroku工具栏在heroku帐户之间进行切换的最佳方法是什么。 我曾经有一个个人的heroku帐户,它是我所有职业性的heroku应用程序的协作者。问题是当我想进行一些对财务有影响的更
是否可以停止部署到当前正在构建的 Heroku ( git push heroku )? 类似 heroku run stopit! 顺便提一句。成功部署后回滚不是我想要的。 最佳答案 首先,安装He
我是一名优秀的程序员,十分优秀!