Skip to content
Snippets Groups Projects

Add clarification to deployment and move port to config file

2 files
+ 5
1
Compare changes
  • Side-by-side
  • Inline

Files

+ 3
1
@@ -51,4 +51,6 @@ DROP USER tam_manager@localhost;
DROP DATABASE tam_database;
```
## Deployment
On the server, use ```./gradlew build``` in the root of the project to build the jar, which will also build the frontend. Run the jar with ```java -Dspring.profiles.active=prod -jar build/libs/tam-0.0.1-SNAPSHOT.jar --server.port=8000```
The application is configured via `application-prod.properties`. By default, the port is set to `8000` in `application.properties`.
On the server, use ```./gradlew build``` in the root of the project to build the jar, which will also build the frontend. Run the jar with ```java -Dspring.profiles.active=prod -jar build/libs/tam-0.0.1-SNAPSHOT.jar```. Note the location of `-Dspring.profiles.active`; it must be in front of the jar.
Loading