Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

Scala app gets "App boot timeout" on Heroku

Looking around here for answers involving that error code, I have the following suggestions:

  • Make sure you can start your app locally with foreman start
  • Find out how to start an https/Jetty app on a different port (I haven't used it)
    • (As an example, I'll use what works for Play2, which is setting http.port)
  • Edit your Procfile, appending an http.port argument that uses $PORT like this:

web: target/universal/stage/bin/myappname -Dhttp.port=$PORT

I suspect that without this port-setting argument, your webapp is starting on a different port to the one Heroku is checking for, hence the timeout.

Categories : Scala

Related to : Scala app gets "App boot timeout" on Heroku
Size of API response is causing R12 timeout error on Heroku
There are multiple things you can do. Paginate - this would be the most recommended. Increase the timeout. If its set to 60s, try setting it to 120s or more. Identify the bottleneck or the most time consuming part of the request. It could be n+1 query problem, serialization library etc. Only send required information in the response. Client of the API might not require all the information from k

Categories : Ruby On Rails
Ruby on rails. Heroku compile assets timeout when i add unicorn gem
Since this seems like a setup issue to me, I'll give you the guides I've been looking at. The way I would solve this would be to google the error. When I typed in heroku unicorn setup I got this page: UPDATE: The error that I was struggling with was an asset compilation issue. That was brought to my attention through using inspect element on my

Categories : Ruby On Rails
Trouble with Heroku Deployment and Interpreting Heroku Log
2014-11-21T19:27:58.271705+00:00 app[web.1]: has_many :user, through :user_to_destinations doesn't look right - it should be has_many :user, through: :user_to_destinations at /app/app/models/destination.rb:3

Categories : Ruby On Rails
Remove prefixed attribute in scala (scala-xml)
You can't remove a prefixed attribute with remove(String) because of its implementation: From Attribute.scala: def remove(key: String) = if (!isPrefixed && this.key == key) next else copy(next remove key) As you can see, if the attribute is prefixed, the first branch condition is false. However, there is a different function in the same class: def remove(namespace: String, scop

Categories : Xml
Scala - Getting the error scala.xml.NodeSeq
You are mixing up the types. Menu takes List[String] and not scala.xml.NodeSeq. You get the error, because you are passing the whole node (scala.xml.NodeSeq), not just the content of it. I can recommend this blogpost to review for further explanation: I would recommend to get your representation right first always. The

Categories : Xml
Recently Add
Reverse list of n elements
scalac: Error: object CharRef in intelliJ 14
Scala - trouble with type inference in lambda expression
Exception on spark test
How can I emulate Haskell's typeclasses in Scala?
Slick: CRUD extension: How to encapsulate implicit mapping:BaseColumnType[T]
Can't find Traverse for sequencing Seq[ValidationNel[String, MyCaseClass]] => ValidationNel[String, Seq[MyCaseClass]]
Tail recursion: internal "loop" function or default values for accumulators
Scala - Add element:MyType to Array = option[MyType] expected
Scala, Composing Function with two values
Using dependent type to generate compile error
How to match all words in a sentence with scala combinators?
Parser Alternative Operator | Fails
ScalaTest assertion mismatch due to Physical Address
Scala implicit parameter and japanese smiley 'foldLeft'
Is it possible to user reduceByKey((x, y, z) => ...)?
How to implement security Authorization using scala and play?
SSO login using scala script
Sum elements based on a predicate
Keep track of completed Futures
API Observable with dynamic caching Remotely closed in gatling
Scala permutations using two lists
Is Scala Either really a Monad
Spark: Use of distinct
Identifying two type wildcards as identical
how to package spark scala application
Pattern Match on Scala `class`
Type mismatch when using higher-kinded types
Scala List match last element
© Copyright 2017 Publishing Limited. All rights reserved.