Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application not starting after pushing to Heroku

Tags:

heroku

scala

This is the output of my "git push heroku master" command :

   [info] Done updating.
   [info] Compiling 2 Scala sources to /tmp/build_3kg6a8iex5xd6/target/scala-2.8.1/classes...
   [success] Total time: 8 s, completed Apr 22, 2012 4:54:01 PM
   [info] Wrote start script for mainClass := Some(JettyLauncher) to /tmp/build_3kg6a8iex5xd6/target/start
   [success] Total time: 0 s, completed Apr 22, 2012 4:54:01 PM
   Discovering process types
   Procfile declares types -> web
   Compiled slug size is 57.0MB
   Launching...  done, v23
   http://xxxxxx.herokuapp.com deployed to Heroku

After this the Application is still not up. Tried heroku ps. It is not showing any process.

Contents of my Procfile :

web: target/start JettyLauncher

When I try foreman start, it is working fine.

Can somebody please help me find why the Application is not up after it is deployed to Heroku?

like image 807
Siv Ragav Avatar asked Apr 22 '12 17:04

Siv Ragav


People also ask

Why is my Heroku app not loading?

There are some errors which only occur when the app is rebooting so you will need to restart the app to see these log messages appear. For most apps, we also recommend enabling one of the free logging addons from https://elements.heroku.com/addons#logging to make sure that your historical log data is being saved.

How do I force push to Heroku?

To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.

How do I know if Heroku is working?

You can run heroku open , which will open your app in your default web browser. Of course you can also manually navigate to your app's URL, which should be be https://<your-app-name>.herokuapp.com . You can also run heroku ps which will show your app's dynos and their status.


1 Answers

Try running

heroku scale web=1

If you've had a failed push before this heroku won't necessarily auto start the app

like image 52
S-C Avatar answered Sep 20 '22 17:09

S-C