Skip to content

rosemspace/rosemspace.github.io

Repository files navigation

This is the main website of Rosem web packages hosted on Github Pages.

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate

For detailed explanation on how things work, check out Nuxt.js docs.

Publish on a Custom Domain

You can publish the website on a custom domain with autogenerated SSL certificate in 2 ways:

  1. As a www subdomain (www.example.com)
  2. As an apex domain (example.com)

The following DNS configuration should be used for your custom domain:

Type Name Data TTL
A @ 185.199.108.153 1 hour
A @ 185.199.109.153 1 hour
A @ 185.199.110.153 1 hour
A @ 185.199.111.153 1 hour
CNAME www <organization>.github.io. 1 hour

If you faced with some troubles (no SSL certificate or the site is not loading):

Deploy

Open the deploy.sh file:

  1. Update the user name and email used for git
  2. Update the URL of a GitHub repository

Run the following command:

./deploy.sh

It will run the npm run build command and push forcibly all compiled files in dist folder to master branch.

Work in progress