Oxen.io Website
Go to file
William Grant f81f5edef3 fixed inline links and meddia with a position 2021-09-03 12:45:23 +02:00
@types Templated structure 2021-01-22 13:43:42 +11:00
assets added styling for blockquotes in embedded content 2021-09-02 15:48:45 +02:00
components upgraded tailwindcss and removed tailwindcss-children dep, small style fixes 2021-09-03 12:20:35 +02:00
constants Update FAQ Side Menu Label 2021-05-18 05:24:44 +00: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 upgraded tailwindcss and removed tailwindcss-children dep, small style fixes 2021-09-03 12:20:35 +02:00
public Replace faq image 2021-05-27 04:02:55 +00:00
services fixed inline links and meddia with a position 2021-09-03 12:45:23 +02:00
state Add FAQ link to sidebar 2021-04-29 14:34:20 +10:00
types added initial deps for upgraded rich content rendering 2021-09-02 08:34:48 +02:00
utils added initial deps for upgraded rich content rendering 2021-09-02 08:34:48 +02: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-07-30 12:07:34 +02: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 small fixes 2021-09-02 14:42:15 +02:00
package.json upgraded tailwindcss and removed tailwindcss-children dep, small style fixes 2021-09-03 12:20:35 +02:00
postcss.config.js isr 2021-02-10 19:38:27 +11:00
tailwind.config.js upgraded tailwindcss and removed tailwindcss-children dep, small style fixes 2021-09-03 12:20:35 +02: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 upgraded tailwindcss and removed tailwindcss-children dep, small style fixes 2021-09-03 12:20:35 +02: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 /home/ubuntu/ecosystem.config.js
    

Notes

You can check the status of the server by running

pm2 status