Change default dev port to 7000
This commit is contained in:
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@ -11,8 +11,8 @@ Vagrant.configure(2) do |config|
|
|||||||
end
|
end
|
||||||
config.vm.network 'forwarded_port',
|
config.vm.network 'forwarded_port',
|
||||||
host_ip: ENV['LISTEN_ADDRESS'] || '127.0.0.1',
|
host_ip: ENV['LISTEN_ADDRESS'] || '127.0.0.1',
|
||||||
host: 3000,
|
host: 7000,
|
||||||
guest: 3000
|
guest: 7000
|
||||||
config.vm.synced_folder '.', '/home/vagrant/codeocean'
|
config.vm.synced_folder '.', '/home/vagrant/codeocean'
|
||||||
config.vm.synced_folder '../dockercontainerpool', '/home/vagrant/dockercontainerpool'
|
config.vm.synced_folder '../dockercontainerpool', '/home/vagrant/dockercontainerpool'
|
||||||
config.vm.provision 'shell', path: 'provision/provision.vagrant.sh', privileged: false
|
config.vm.provision 'shell', path: 'provision/provision.vagrant.sh', privileged: false
|
||||||
|
@ -7,6 +7,7 @@ development:
|
|||||||
<<: *default
|
<<: *default
|
||||||
default_url_options:
|
default_url_options:
|
||||||
host: localhost
|
host: localhost
|
||||||
|
port: 7000
|
||||||
delivery_method: :test
|
delivery_method: :test
|
||||||
|
|
||||||
production:
|
production:
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
||||||
threads threads_count, threads_count
|
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.
|
# Specifies the `environment` that Puma will run in.
|
||||||
#
|
#
|
||||||
|
@ -39,7 +39,7 @@ rails s -p 3100
|
|||||||
|
|
||||||
# using another ssh session
|
# using another ssh session
|
||||||
cd /home/vagrant/codeocean
|
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:
|
The default credentials for the internal users are the following:
|
||||||
@ -216,7 +216,7 @@ source "$HOME/.profile"
|
|||||||
### Start CodeOcean
|
### Start CodeOcean
|
||||||
|
|
||||||
- Start CodeOcean by executing `rails s` in the project root
|
- 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`
|
- You can login as administrator with the user `admin@example.org` and the password `admin`
|
||||||
|
|
||||||
## Native setup (for macOS)
|
## Native setup (for macOS)
|
||||||
|
@ -17,7 +17,7 @@ Local setup
|
|||||||
host: tcp://localhost:2375
|
host: tcp://localhost:2375
|
||||||
ws_host: ws://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:
|
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:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user