2016-03-20 1 views
0

Ich baute eine App basierend auf Vorlage Play-Silhouette-Seed-Slick. template linkPlay Framework app Heroku Konfigurationsfehler: Schlüssel 'application.conf' darf nicht gefolgt werden von Token: 'application.prod.conf'

Ich habe einen Konfigurationsfehler durch com.typesafe.config.ConfigException $ Parse nach der Bereitstellung der App auf heroku verursacht.

"Configuration error: Configuration error[ @ file:/app/target/universal/stage/conf/: 2: Key 'application.conf' may not be followed by token: 'application.prod.conf' (if you intended 'application.prod.conf' to be part of a key or string value, try enclosing the key or value in double quotes)]"

Die procfile

web: target/universal/stage/bin/panobike-plus-server -Dhttp.port=${PORT} -Dconfig.resource=${PLAY_CONF_FILE} 

Und app.json

{ 
    "name": "play-silhouette-slick-seed", 
    "description": "Seed project to show how Silhouette can be implemented into a Play Framework application with database access using Slick 3.", 
    "keywords": [ 
     "Play", 
     "Silhouette", 
     "Slick" 
    ], 
    "website": "https://github.com/sbrunk/play-silhouette-slick-seed", 
    "repository": "https://github.com/sbrunk/play-silhouette-slick-seed", 
    "success_url": "/", 
    "env": { 
     "BUILDPACK_URL": "https://github.com/heroku/heroku-buildpack-scala.git", 
     "PLAY_CONF_FILE": "application.prod.conf", 
     "PLAY_APP_SECRET": "changeme", 
     "FACEBOOK_CLIENT_ID": "", 
     "FACEBOOK_CLIENT_SECRET": "", 
     "GOOGLE_CLIENT_ID": "", 
     "GOOGLE_CLIENT_SECRET": "", 
     "TWITTER_CONSUMER_KEY": "", 
     "TWITTER_CONSUMER_SECRET": "" 
    } 
} 

In meiner Produktion config "application.prod.conf", gibt es keine solche Taste "application.conf". Was bedeutet diese Fehlermeldung?

Vielen Dank

+0

Ihre app.json hat einen Syntaxfehler - es gibt keine schließende geschweifte Klammer für den Schlüssel "env". Ist das absichtlich? – Anton

+0

Das war ein Tippfehler, ich habe eine schließende geschweifte Klammer für "env", ich habe diese Datei nicht geändert, seit ich sie aus GitHub gezogen habe. @Anton – JohanLiebhart

Antwort

Verwandte Themen