Welcome to the updated version of the 104 course site. You'll have to do a little bit of setup before you can get started!
-
Install submodules. Run
git submodule init && git submodule updatein this repository. -
Install Ruby. You can use Homebrew if you're on macOS or the package manager of your choice on Linux.
-
Install Bundler. You can use
gem install bundleronce Ruby is installed. -
Install this project's dependencies. Run
bundle installfrom the root directory of this repository.
To make changes and see the results in real time, run the Jekyll development server. You can do this using the following command once you've finished setup:
bundle exec jekyll serve
The Jekyll development server will automatically reload when it detects that you've made changes.
You can view these changes by viewing the site locally in your browser.
By default, it is served at the URL http://localhost:4000.
To update remote, use:
git push origin 2021/fall:deploy
Currently, the site is hosted on bytes.usc.edu. If the server is restarted, you may manually need to restart the curricula services:
sudo systemctl start curricula_web
sudo systemctl start curricula_web_worker
We are trying to enable them automatically on startup: sudo systemctl enable <service> on both services.