Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surge Publishing Guide #49

Open
yeqbfgxjiq opened this issue Sep 2, 2019 · 0 comments
Open

Surge Publishing Guide #49

yeqbfgxjiq opened this issue Sep 2, 2019 · 0 comments

Comments

@yeqbfgxjiq
Copy link
Contributor

yeqbfgxjiq commented Sep 2, 2019

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)
@yeqbfgxjiq yeqbfgxjiq changed the title Docusaurus Publishing Guides Surge Publishing Guides Sep 2, 2019
@yeqbfgxjiq yeqbfgxjiq changed the title Surge Publishing Guides Surge Publishing Guide Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant