Change default dev port to 7000

This commit is contained in:
Sebastian Serth
2021-04-29 11:48:17 +02:00
parent 52e913dfdd
commit b78a161914
5 changed files with 8 additions and 7 deletions

4
Vagrantfile vendored
View File

@ -11,8 +11,8 @@ Vagrant.configure(2) do |config|
end
config.vm.network 'forwarded_port',
host_ip: ENV['LISTEN_ADDRESS'] || '127.0.0.1',
host: 3000,
guest: 3000
host: 7000,
guest: 7000
config.vm.synced_folder '.', '/home/vagrant/codeocean'
config.vm.synced_folder '../dockercontainerpool', '/home/vagrant/dockercontainerpool'
config.vm.provision 'shell', path: 'provision/provision.vagrant.sh', privileged: false

View File

@ -7,6 +7,7 @@ development:
<<: *default
default_url_options:
host: localhost
port: 7000
delivery_method: :test
production:

View File

@ -7,9 +7,9 @@
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
threads threads_count, threads_count
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
# Specifies the `port` that Puma will listen on to receive requests; default is 7000.
#
port ENV.fetch("PORT") { 3000 }
port ENV.fetch("PORT") { 7000 }
# Specifies the `environment` that Puma will run in.
#

View File

@ -39,7 +39,7 @@ rails s -p 3100
# using another ssh session
cd /home/vagrant/codeocean
rails s -p 3000 -b 0.0.0.0
rails s -p 7000 -b 0.0.0.0
```
The default credentials for the internal users are the following:
@ -216,7 +216,7 @@ source "$HOME/.profile"
### Start CodeOcean
- Start CodeOcean by executing `rails s` in the project root
- Open `localhost:3000` in your browser
- Open `localhost:7000` in your browser
- You can login as administrator with the user `admin@example.org` and the password `admin`
## Native setup (for macOS)

View File

@ -17,7 +17,7 @@ Local setup
host: tcp://localhost:2375
ws_host: ws://localhost:2375
5. Run the CodeOcean server with `rails s -p 3333`
5. Run the CodeOcean server with `rails s -p 7000`
6. Login with admin@example.org (pw: admin) and create a new execution environment picking the newly created Docker image from the dropdown. Set the initial command to: