Skip to content

SwissTchoukball/website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swiss Tchoukball website - frontend

Website of Swiss Tchoukball, made with Nuxt.

Production is on tchoukball.ch

Staging is on next.tchoukball.ch. For now it uses the same CMS instance as in production. It's fine currently, as we only read data from the CMS.

Setup

Production and staging are hosted on an Infomaniak Managed Cloud Server.

Deployment is automated via GitHub Actions.

pm2 setup

Based on Infomaniak documentation.

pm2 CLI doc

To show the list of active crons: crontab -l.

Development

After having cloned the repository:

  • nvm use
  • npm install
  • Duplicate .env.example into .env
    • The variable CMS_URL is already set to match a locally running Directus CMS from swisstchoukball/cms.
  • npm run dev

Run in production mode

  • npm run build
  • npm run preview