Skip to content

Commit 91a33bb

Browse files
committed
chore(deploy): streamline logback deployment files
1 parent 09802ec commit 91a33bb

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

gradle/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ tasks {
6767
val release by creating {
6868
dependsOn(clean, check)
6969
group = "distribution"
70-
description = "Prepares a new Release by bumping the version and creating and pushing a commit tagged with the new version"
70+
description = "Prepares a new Release by bumping the version and pushing a commit tagged with the new version"
7171
doLast {
7272
var newVersion = version
7373
fun String.editVersion(version: String, new: Int) =

helpers/push_to_server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ ssh -S ssh-ctrl-socket -O exit $server
2020
#scp docker-compose-production.yml $server:./docker-compose.yml
2121
ssh $server 'sudo docker pull localhost:5000/swc_game-server' && \
2222
# NOTE This requires the other services (client-controller and gameserver) in the compose file also already deployed
23-
ssh $server 'sudo docker service update --image localhost:5000/swc_game-server:latest --with-registry-auth deploy_gameserver'
23+
ssh $server 'sudo docker service update --image localhost:5000/swc_game-server:latest --with-registry-auth contest_gameserver'

server/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ tasks {
8686
include("?ocker*")
8787
include("logback-production.xml")
8888
include("server.properties.production")
89+
rename("logback-production.xml", "logback.xml")
8990
into(workingDir)
9091
}
9192
}

server/configuration/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ADD $game_server_dir /app
99
WORKDIR /app
1010
# the following files from the configuration directory will be copied to the
1111
# docker working directory before build
12-
ADD logback-production.xml /app/logback-production.xml
12+
ADD logback.xml /app/logback.xml
1313
# This will be overwritten by the docker secret with the real password in production:
1414
ADD server.properties.production /run/secrets/gameserver_properties
1515
RUN rm /app/server.properties && \
@@ -18,7 +18,6 @@ RUN rm /app/server.properties && \
1818
ENTRYPOINT ["java"]
1919

2020
CMD ["-Dfile.encoding=UTF-8", \
21-
"-Dlogback.configurationFile=logback-production.xml", \
2221
"-Djava.security.egd=file:/dev/./urandom", \
2322
"-server", \
2423
"-Xmx16g", \

server/src/main/java/sc/server/network/ClientManager.java

Whitespace-only changes.

0 commit comments

Comments
 (0)