strydal-backend is the soul of Strydal.
./gradlew test
- Docker has to be installed
./gradlew docker
- strydal-backend is Dockerised (check with
docker images
command) - There is a local PostgreSQL with an empty database
strydal
, with user and passwordstrydal
docker run --net=host -e "CREATE_DB=true" -p 8080:8080 -t com.strydal/strydal-backend
docker run --net=host -p 8080:8080 -t com.strydal/strydal-backend
- Docker has to be installed
- now cli has to be installed (install with
npm i -g now
) - You have access to the
strydal
team in Zeit
./deploy.sh
- The
api.strydal.com
hostname is setup properly
now -T strydal secrets add db-host "databaseIPOrHostname"
now -T strydal secrets add db-port "5432"
now -T strydal secrets add db-user "strydal"
now -T strydal secrets add db-password "databasePassword"
now -T strydal secrets add spring-profile "prod"
now -T strydal secrets add jwt-secret-key "jwtSecretKey"
On every new deployment the scale rules will be copied from the previous alias and the previous instance will scaled down.
now -T strydal scale api.strydal.com 0
now -T strydal scale api.strydal.com bru1 1