mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-13 13:50:28 +05:30
Attempt to warm classes.
This commit is contained in:
parent
e8cb35acf9
commit
f85b9d095d
@ -15,6 +15,8 @@ COPY --from=build /app/build/libs/piped-1.0-all.jar /app/piped.jar
|
||||
|
||||
COPY VERSION .
|
||||
|
||||
RUN /bin/bash -c 'java -Xshareclasses:allowClasspaths -Xquickstart -jar /app/piped.jar &' ; sleep 30 ; pkill java
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseParallelGC -XX:-UseBiasedLocking -Xshareclasses:allowClasspaths -Xtune:virtualized -jar /app/piped.jar
|
||||
|
@ -6,6 +6,8 @@ COPY ./piped.jar /app/piped.jar
|
||||
|
||||
COPY VERSION .
|
||||
|
||||
RUN /bin/bash -c 'java -Xshareclasses:allowClasspaths -Xquickstart -jar /app/piped.jar &' ; sleep 30 ; pkill java
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD java -server -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseParallelGC -XX:-UseBiasedLocking -Xshareclasses:allowClasspaths -Xtune:virtualized -jar /app/piped.jar
|
||||
|
@ -90,7 +90,10 @@ public class Constants {
|
||||
Properties prop = new Properties();
|
||||
try {
|
||||
YOUTUBE_SERVICE = NewPipe.getService(0);
|
||||
prop.load(new FileReader("config.properties"));
|
||||
|
||||
if (new File("config.properties").exists()) {
|
||||
prop.load(new FileReader("config.properties"));
|
||||
}
|
||||
|
||||
PORT = Integer.parseInt(getProperty(prop, "PORT", "8080"));
|
||||
HTTP_WORKERS = getProperty(prop, "HTTP_WORKERS",
|
||||
|
Loading…
Reference in New Issue
Block a user