Oxen.io Website
Go to file
Lucas Phang 2e3ed8103c Add FAQ link to sidebar 2021-04-29 14:34:20 +10:00
@types Templated structure 2021-01-22 13:43:42 +11:00
assets Remove unused styles 2021-04-29 11:28:52 +10:00
components Fetch non-dev-update posts when no tag is present 2021-04-23 13:42:20 +10:00
constants Add FAQ link to sidebar 2021-04-29 14:34:20 +10:00
contexts Rich body lists 2021-02-18 14:28:52 +11:00
hooks Blog home solid 2021-02-08 17:37:50 +11:00
pages Remove unused styles 2021-04-29 11:28:52 +10:00
public CMC link added 2021-03-05 10:35:27 +11:00
services Rename blog result constants 2021-04-23 16:30:52 +10:00
state Add FAQ link to sidebar 2021-04-29 14:34:20 +10:00
types Links fixed 2021-02-25 15:07:17 +11:00
utils Removed discord 2021-03-02 19:20:08 +11:00
.babelrc No fallback path for blog posts 2021-02-22 13:33:24 +11:00
.eslintrc.js Templated structure 2021-01-22 13:43:42 +11:00
.gitignore onTouch mobile bubble sidemenu 2021-02-19 11:03:28 +11:00
.nowignore Templated structure 2021-01-22 13:43:42 +11:00
.prettierignore Templated structure 2021-01-22 13:43:42 +11:00
.prettierrc.js Templated structure 2021-01-22 13:43:42 +11:00
README.md updated readme 2021-04-01 15:53:26 +11:00
_next onTouch mobile bubble sidemenu 2021-02-19 11:03:28 +11:00
jest.config.js BUILDING WORKS WOOHOOOO 2021-02-19 08:36:08 +11:00
next-env.d.ts Templated structure 2021-01-22 13:43:42 +11:00
next.config.js Resized images 2021-02-18 15:44:53 +11:00
package.json No fallback path for blog posts 2021-02-22 13:33:24 +11:00
postcss.config.js isr 2021-02-10 19:38:27 +11:00
tailwind.config.js Searching by tags 2021-02-23 17:48:23 +11:00
tsconfig.json Templated structure 2021-01-22 13:43:42 +11:00
update.sh Removed discord 2021-03-02 19:20:08 +11:00
yarn.lock No fallback path for blog posts 2021-02-22 13:33:24 +11:00

README.md

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Setting up your environment

  • Install NVM following the guide at nvm.sh

  • Navigate to project directory

  • Set your NVM version

    nvm install 14.15.0
    nvm use 14.15.0
    
  • Install yarn

    npm i -g yarn
    

Steps to Build to Production

  • Make your local changes

  • Build locally; ensure everything is working

    yarn build
    yarn start
    
  • Commit and push your changes

        git add .
        git commit -m 'My changes'
        git push -u origin
    
  • SSH into the box

    ssh root@116.203.145.108
    
  • Navigate to the directory of the project

    cd /home/ubuntu/oxen.io/
    
  • Pull changes

    git pull origin
    
  • Build on the server

    yarn build
    
  • Restart NGinx and PM2

    systemctl restart nginx && pm2 restart oxen.io
    

Notes

You can check the status of the server by running

pm2 status