/website-1

The Student Robotics public website

Primary LanguageHTMLOtherNOASSERTION

Student Robotics Website

Build status

The Student Robotics public website.

Getting Started

  1. Install Ruby

  2. Install Bundler (1.x) and Rake

    $ gem install 'bundler:~>1' rake
    
  3. Start the app in development mode

    $ rake dev

To work on the reverse proxy

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:

  1. Install Docker

  2. Fetch the latest base image:

    $ docker pull nginx
  3. 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.

  4. Start the container

    $ rake run
  5. 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!)

  6. Make your changes to the nginx.conf

  7. Get those changes into the container and reload nginx:

    $ docker cp _env/nginx.conf srobo:/etc/nginx/nginx.conf && docker kill -s HUP srobo
  8. Refresh your browser and bask in the glory of your changes

Making changes

When you've made a change, either push it to a forked repository, or to a feature branch, and raise a pull request.

Deployment

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.