Skip to content

Commit

Permalink
expose 8080 for production
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Aug 17, 2024
1 parent e908505 commit b359ece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GuildWarsPartySearch.NodeJSServer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

1. Copy config.example.sh to config.sh, and edit it to add your Guild Wars credentials
2. `docker build -t partysearchserver_alpine .`
3. *Windows:* `docker run -d --restart always --name partysearchserver -p80:80 -v "%cd%":/app partysearchserver_alpine ./run.sh`
3. *Linux:* `docker run -d --restart always --name "${PWD##*/}" -p80:80 --replace -v "$PWD":/app:Z partysearchserver_alpine ./run.sh`
3. *Windows:* `docker run -d --restart always --name partysearchserver -p8080:80 -v "%cd%":/app partysearchserver_alpine ./run.sh`
3. *Linux:* `docker run -d --restart always --name "${PWD##*/}" -p8080:80 --replace -v "$PWD":/app:Z partysearchserver_alpine ./run.sh`

## If the source code for the bot has been changed

Expand Down
2 changes: 1 addition & 1 deletion GuildWarsPartySearch.NodeJSServer/redeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rm -R "/tmp$BOT_FOLDER";
cd "$BOT_FOLDER";

RUN_CMD=$(cat <<EOF
docker run -d --restart always --name "$BOT_NAME" -v "$BOT_FOLDER":/app:Z --replace partysearchbot_alpine ./run.sh
docker run -d --restart always --name "$BOT_NAME" -p8080:80 -v "$BOT_FOLDER":/app:Z --replace partysearchbot_alpine ./run.sh
EOF
)
echo $RUN_CMD;
Expand Down

0 comments on commit b359ece

Please sign in to comment.