Simple Backend for the Next Tram
Before deploying to App Engine put a file like this in src/main/appengine/app.yaml
runtime: java
env: flex
env_variables:
SPRING_PROFILES_ACTIVE: 'google'
This will only work if you get your key from trafiklab. Set it as a property in application.properties like this: tram.robot-key= or as an environment variable like TRAM_ROBOT_KEY=...
How to deploy to App Engine: ./mvnw appengine:deploy
Deploy to Pivotal: $ cf push tram-api -p target/tram-api-0.0.1-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
Setting env variables $ cf set-env tram-api SPRING_PROFILES_ACTIVE prod