Skip to content

Surge Publishing Guide #49

Description

@yeqbfgxjiq

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions