Merge pull request #2 from grimsi/gh-1_ShortenStartupCommand

Shorten startup command
This commit is contained in:
Simon
2022-08-10 20:21:55 +02:00
committed by GitHub
3 changed files with 8 additions and 6 deletions
+2 -3
View File
@@ -38,10 +38,9 @@ Since Gameyfin loads information from IGDB, you need to register yourself there.
### Bare metal
1. Make sure you have a JRE or JDK with version 18 or greater installed
2. Download the latest .jar and `gameyfin.properties` file from the releases page
2. Download the latest `gameyfin.jar` and `gameyfin.properties` file from the releases page
3. Edit the config options in the `gameyfin.properties` file
4. Use the following command to start Gameyfin: `java "-Dspring.config.name=application,database,gameyfin,secure" -jar <name of the downloaded jar file>.jar`
(note the quotation marks around the first argument)
4. Use the following command to start Gameyfin: `java -jar gameyfin.jar`
5. Open the address of your Gameyfin host in your browser, Gameyfin runs under port 8080 by default
## Screenshots
@@ -1,13 +1,16 @@
package de.grimsi.gameyfin;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
@SpringBootApplication
public class GameyfinApplication {
public static void main(String[] args) {
SpringApplication.run(GameyfinApplication.class, args);
new SpringApplicationBuilder(GameyfinApplication.class)
.properties("spring.config.name=application,gameyfin,database,secure")
.build()
.run(args);
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ COPY ${JAR_FILE} /opt/gameyfin/gameyfin.jar
WORKDIR /opt/gameyfin
ENTRYPOINT ["java", "-Dspring.config.name=application,gameyfin,database,secure", "-jar", "gameyfin.jar"]
ENTRYPOINT ["java", "-jar", "gameyfin.jar"]