We are not publishing to gh-pages via Docusaurus. We are publishing via surge.sh because it allows us to more easily setup sub domains for the forum. The process to push updates to cryptoeconomics.study is as follows:
⚠️ Do not change the surge publishing parameters in siteConfig.js
Working on the website
git clone this repo
- do stuff in the
website repo
- make sure that your changes build locally (
$ cd website && yarn, then yarn start
- this should build the website locally and deploy it to localhost:3000 and open that up in your browser
Note: this repo is called website, but there is also a directory within this repo titled website. You need to be in the website directory within the website repo (website/website) in order to use yarn to run or build updates.
Publishing the website
- when you're ready to publish, navigate to the
website directory and run yarn build
- then navigate to the newly built repo (
website/build/cryptoeconomics-study)
- install surge:
npm i -g surge
- run
surge in the directory of the most recent build: surge
- login to surge (must be a Gerbil with admin access)
- the default will be to publish the current directory: hit
enter to accept
- for the domain delete whatever surge recommends and enter
cryptoeconomics.study
- wait for it to do it's thing, then go to cryptoeconomics.study to see the results (should be almost instant after surge finishes)
We are not publishing to gh-pages via Docusaurus. We are publishing via surge.sh because it allows us to more easily setup sub domains for the forum. The process to push updates to cryptoeconomics.study is as follows:
Working on the website
git clonethis repowebsiterepo$ cd website && yarn, thenyarn startPublishing the website
websitedirectory and runyarn buildwebsite/build/cryptoeconomics-study)npm i -g surgesurgein the directory of the most recent build:surgeenterto acceptcryptoeconomics.study