- Compile Mavern project
mvn compile
- Package Mavern project
mvn package
- Run Spring-boot locally
mvn spring-boot:run
- Clean up the mavern project
mvn clean -> remove target folder
- Login to railway, this will launch your browser
railway Login
- Init your project to enable railway
railway Init
-
Change the JDK version under pom.xml (change to 11) <java.version>11</java.version>
-
Push to railway site
railway up
- Click on the launched project
click the project in the middle area
- Go to settings and generate domain
---Extra Stuff---
- Spring boot port config / Arguments with mvn
mvn spring-boot:run -Dspring-boot.run.arguments=--port=8084
- Setting the port number
set APP_PORT=8090