Currently, both frontend and backend is bundled in the same project. Ideally, the backend should be completely stand-alone as a pure REST API, so the frontend should be packaged separately.
Additionally, some of the migrations on the backend include data specific for one application, which should also be moved to a separate package.
One possible solution is to do something like the following:
Build backend separately, deploy to Bintray et. al.
Create new project specific for http://tilfeldigeord.no, which includes frontend stuff, as well as migrations specific for that application - which depends on the backend JAR
Run the application with something like this: java -Dspring.resources.staticLocations=/path/to/webpack/output -Dflyway.locations=classpath:db/migration,file:/path/to/app-specific/flyway-migrations -Dserver.port=$PORT $JAVA_OPTS -jar target/random-words-1.0.0-SNAPSHOT.jar
Currently, both frontend and backend is bundled in the same project. Ideally, the backend should be completely stand-alone as a pure REST API, so the frontend should be packaged separately.
Additionally, some of the migrations on the backend include data specific for one application, which should also be moved to a separate package.
One possible solution is to do something like the following:
java -Dspring.resources.staticLocations=/path/to/webpack/output -Dflyway.locations=classpath:db/migration,file:/path/to/app-specific/flyway-migrations -Dserver.port=$PORT $JAVA_OPTS -jar target/random-words-1.0.0-SNAPSHOT.jar