Oxen.io Website
Find a file
2021-05-05 16:38:23 +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 Merge branch 'master' of https://github.com/oxen-io/oxen-website into fix-metatags 2021-05-03 10:37:35 +10:00
constants Add metatags to main blog page 2021-05-04 13:44:01 +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 debug code 2021-05-05 16:38:23 +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 Added airdrop link 2021-03-18 15:44:59 +11:00
types Links fixed 2021-02-25 15:07:17 +11:00
utils Add missing metadata tags to roadmap page 2021-05-03 15:23:52 +10: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
_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
README.md updated readme 2021-04-01 15:53:26 +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

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