Oxen.io Website
Go to file
William Grant fee43349f9 updated contentful deps, improved image rendering for rich content 2021-09-15 09:38:14 +10:00
@types Templated structure 2021-01-22 13:43:42 +11:00
assets added rss feed 2021-09-03 16:10:01 +02:00
components updated contentful deps, improved image rendering for rich content 2021-09-15 09:38:14 +10:00
constants created email signup component, can be used via shortcodes 2021-09-08 10:57:03 +02: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 statically generate FAQ page, works when javascript is disabled 2021-09-08 12:36:06 +02:00
public Replace faq image 2021-05-27 04:02:55 +00:00
services updated contentful deps, improved image rendering for rich content 2021-09-15 09:38:14 +10:00
state Add FAQ link to sidebar 2021-04-29 14:34:20 +10:00
types CMS service improvements 2021-09-03 15:21:12 +02:00
utils added rss feed 2021-09-03 16:10:01 +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 added rss feed 2021-09-03 16:10:01 +02: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 added rss feed 2021-09-03 16:10:01 +02:00
package.json updated contentful deps, improved image rendering for rich content 2021-09-15 09:38:14 +10:00
postcss.config.js changed sass to css and removed node-sass dep, added css-nano dep 2021-09-03 13:32:12 +02:00
tailwind.config.js changed sass to css and removed node-sass dep, added css-nano dep 2021-09-03 13:32:12 +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 updated contentful deps, improved image rendering for rich content 2021-09-15 09:38:14 +10: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