Skip to content

Commit

Permalink
Change default port for Judge0 to 2358.
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanzdosilovic committed Dec 30, 2020
1 parent 4ce2ba9 commit ea9c7c9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apt-get update && \
gem install bundler:2.1.4 && \
npm install -g --unsafe-perm aglio@2.3.0

ENV VIRTUAL_PORT 3000
ENV VIRTUAL_PORT 2358
EXPOSE $VIRTUAL_PORT

WORKDIR /api
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
volumes:
- .:/api
ports:
- "3000:3000"
- "2358:2358"
- "3001:3001" # For ./scripts/dev/serve-docs
privileged: true

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
volumes:
- ./judge0.conf:/judge0.conf:ro
ports:
- "80:3000"
- "2358:2358"
privileged: true
<<: *default-logging
restart: always
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
volumes:
- ./judge0.conf:/judge0.conf:ro
ports:
- "80:3000"
- "2358:2358"
privileged: true
<<: *default-logging
restart: always
Expand Down
6 changes: 3 additions & 3 deletions docs/maintainers/RELEASE_NOTES_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Please note that Judge0 has only been tested on **Linux** and **macOS**, and mig

### With HTTP
1. Install [Docker](https://docs.docker.com) and [Docker Compose](https://docs.docker.com/compose).
2. Download and extract release archive:
2. Download and extract the release archive:
```
wget https://github.com/judge0/judge0/releases/download/vX.Y.Z/judge0-vX.Y.Z.zip
unzip judge0-vX.Y.Z.zip
Expand All @@ -35,11 +35,11 @@ docker-compose up -d
sleep 5s
```

4. Your instance of Judge0 vX.Y.Z is now available at `http://<IP ADDRESS OF YOUR SERVER>`.
4. Your instance of Judge0 vX.Y.Z is now available at `http://<IP ADDRESS OF YOUR SERVER>:2358`.

### With HTTPS (SSL/TLS)
1. Install [Docker](https://docs.docker.com) and [Docker Compose](https://docs.docker.com/compose).
2. Download and extract release archive:
2. Download and extract the release archive:
```
wget https://github.com/judge0/judge0/releases/download/vX.Y.Z/judge0-vX.Y.Z-https.zip
unzip judge0-vX.Y.Z-https.zip
Expand Down
2 changes: 1 addition & 1 deletion scripts/load-config
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export RAILS_ENV=${RAILS_ENV:-production}
export RAILS_MAX_THREADS=${RAILS_MAX_THREADS:-5}
export RAILS_SERVER_PROCESSES=${RAILS_SERVER_PROCESSES:-1}
export SECRET_KEY_BASE=${SECRET_KEY_BASE:-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 128 | head -n 1)}
export PORT=${PORT:-3000} # This option is not available in judge0.conf
export PORT=${PORT:-2358} # This option is not available in judge0.conf
export RAILS_LOG_TO_STDOUT=true # This options is not available in judge0.conf

# Authentication
Expand Down

0 comments on commit ea9c7c9

Please sign in to comment.