- Clone this repository.
- Run
yarn
to install the dependencies. - Run
yarn dev
to launch the app. You can access it via http://localhost:3000/
Run yarn deploy
to the deploy the site. In the event that this command doesn't work, you can just run each step individually.
Steps:
- Run
yarn build
to build the app. - Run
yarn export
to build the static files. - Run
touch out/.nojekyll
to tell GitHub Pages not to use Jekyll. - Run
echo "sbcs.io" > out/CNAME
to forward sbcs.io to the sbucomputingsociety.github.io - Run
git add out/
to add theout
directory to the index. - Run
git commit -m "Deploy gh-pages"
to commit your changes. - Run
git subtree push --prefix out origin gh-pages
to push your changes to thegh-pages
subdirectory. This is where GitHub Pages is building the site from. - If you get the below error after step 7:
error: failed to push some refs to 'github.com:sbucomputingsociety/sbucomputingsociety.github.io.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Run git push origin <token>:gh-pages --force
where token is the hash outputted from step 7.
e.g. git push origin 67f90f2aedf31dd0e6dd38785f9f009de5ef102f:gh-pages --force
- The site should be up and running at sbcs.io!