devops - PaaS - heroku - helper

heroku - helper

Tuto play but outdated (play 1.x)

Play infos ok

app url

http://desolate-brook-9012.herokuapp.com/

database config

mysql://<username>:<pwd>@us-cdbr-east-04.cleardb.com/heroku_blablabla

Heroku commands to set up env var with user/pwd

$ heroku config:set PPRB_DB_USER=<username>
$ heroku config:set PPRB_DB_PWD=<pwd>

mysql tools config

commands

  • créer une nouvelle app
$ heroku create
  • lister les dyno installées et donner leur statut :
$ heroku ps
[email protected]:~/dev/poc-play-rest-backend$ heroku ps
=== web (1X): `target/start -Dhttp.port=${PORT} ${JAVA_OPTS} -DapplyEvolutions.default=true -Ddb.default.driver=com.mysql.jdbc.Driver -Ddb.default.url=${CLEARDB_DATABASE_URL}`
web.1: crashed 2014/01/10 13:57:53 (~ 8m ago)
  • déployer le code de la branche courante sur heroku. Heroku build l'app sur cette base.
$ git push heroku master
  • setter une seule dyno (gratuit)
$ heroku ps:scale web=1
  • from the project root dir to get logs from heroku in your play logs dir
$ heroku logs > logs/heroku.log

common errors

results for ""

    No results matching ""