i'm trying deploy spring mvc project heroku , following errors:
2015-07-14t22:42:49.088312+00:00 heroku[web.1]: process exited status 1 2015-07-14t22:42:49.101203+00:00 heroku[web.1]: state changed starting crashed 2015-07-14t22:43:31.905877+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path="/" host=hops.herokuapp.com request_id=befdaefa-cb1e-4560-a190-c532a339531b fwd="70.73.71.223" dyno= connect= service= status=503 bytes= 2015-07-14t22:43:32.769807+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path="/favicon.ico" host=hops.herokuapp.com request_id=c04566c1-7b09-4b45-8f64-497601415823 fwd="70.73.71.223" dyno= connect= service= status=503 bytes= i have tried running heroku run rails console gives me following error:
your version of git 1.9.3. has serious security vulnerabilities. more information here: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x running `rails console` attached terminal... up, run.8780 bash: rails: command not found this procfile looks like:
web: java $java_opts -jar target/dependency/jetty-runner.jar --port $port target/*.war i have followed instructions on site, don't know how website , running. https://devcenter.heroku.com/articles/getting-started-with-spring-mvc-hibernate#add-jetty-runner
is there other site can deploy website or know how can fix error. appreciated.
update
when running foreman start web shows following output:
started pid 7510 17:18:59 web.1 | error: unable access jarfile target/dependency/jetty-runner.jar 17:18:59 web.1 | exited code 1 17:18:59 system | sending sigterm processes the dependency jetty display in pom.xml follows:
<dependency> <groupid>org.mortbay.jetty</groupid> <artifactid>jetty-runner</artifactid> <version>8.1.16.v20140903</version> </dependency> </dependencies> i don't know how fix or why creating error.
repeating what's in comment can marked answered.
you need add following plugin configuration:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-dependency-plugin</artifactid> <version>2.4</version> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals><goal>copy</goal></goals> <configuration> <artifactitems> <artifactitem> <groupid>org.eclipse.jetty</groupid> <artifactid>jetty-runner</artifactid> <version>9.2.7.v20150116</version> <destfilename>jetty-runner.jar</destfilename> </artifactitem> </artifactitems> </configuration> </execution> </executions> </plugin> this copy jetty-runner slug can used @ runtime.
Comments
Post a Comment