# all commands used in ./server
cd server
Create environment files for devMode
and prodMode
.
cp src/main/resources/application.yml src/main/resources/application-dev.yml
cp src/main/resources/application.yml src/main/resources/application-prod.yml
Note: These files will not be under version control but listed in .gitignore.
# short
./mvnw
# long
./mvnw spring-boot:run -Pdev
# short
./mvnw -Pprod
# long
./mvnw spring-boot:run -Pprod
# package
./mvnw clean package
# package without tests
./mvnw clean package -DskipTests
# place the `application-prod.yml` aside the run-and-fun-1.0.0-SNAPSHOT.jar and run the jar
cp src/main/resources/application-prod.yml target/application-prod.yml
cd target
java -jar run-and-fun-1.0.0-SNAPSHOT.jar --spring.profiles.active=prod
All options have to been set in the environment files.
The id of the client.
- default: EMPTY
- type:
string
The secret of the client.
- default: EMPTY
- type:
string
The uri used to send the verification code back.
- default: EMPTY
- type:
string