The Student Robotics public website.
-
Install Bundler (1.x) and Rake
$ gem install 'bundler:~>1' rake
-
Start the app in development mode
$ rake dev
Right now the Student Robotics website is also acting as the main reverse proxy for studentrobotics.org. If you are changing the nginx config, you should test the reverse proxy is working before you commit. To do this, do the following:
-
Fetch the latest base image:
$ docker pull nginx
-
Optionally change the bound ports so they don't conflict with your local host's configuration. For example, you might want to edit the
Rakefile
to remove-p 80:80
. -
Start the container
$ rake run
-
Visit http://localhost in a browser (adjust the port as needed if you edited it), and confirm that you see a copy of the SR website (also check that you didn't get redirect to the real one!)
-
Make your changes to the
nginx.conf
-
Get those changes into the container and reload nginx:
$ docker cp _env/nginx.conf srobo:/etc/nginx/nginx.conf && docker kill -s HUP srobo
-
Refresh your browser and bask in the glory of your changes
When you've made a change, either push it to a forked repository, or to a feature branch, and raise a pull request.
Note: full deployment instructions have their own README
The master
branch of repo is built into a Docker image by Circle CI
which is then deployed manually into a Kubernetes hosted on Google Cloud.