/day11

Primary LanguageJava

Workshop 11

  1. Compile Mavern project
mvn compile
  1. Package Mavern project
mvn package
  1. Run Spring-boot locally
mvn spring-boot:run
  1. Clean up the mavern project
mvn clean -> remove target folder
  1. Login to railway, this will launch your browser
railway Login
  1. Init your project to enable railway
railway Init
  1. Change the JDK version under pom.xml (change to 11) <java.version>11</java.version>

  2. Push to railway site

railway up
  1. Click on the launched project
click the project in the middle area
  1. Go to settings and generate domain

---Extra Stuff---

  1. Spring boot port config / Arguments with mvn
mvn spring-boot:run -Dspring-boot.run.arguments=--port=8084
  1. Setting the port number
set APP_PORT=8090