JMU-CIME / CPR-Music

1 stars 27 forks source link

THIS REPO IS ARCHIVED

Find the current repo at https://github.com/Lab-Lab-Lab/CPR-Music










Deploying

  1. tag the version git tag <whatever, e.g. v0.2.2>
  2. push the tag git push origin <whatever, e.g. v0.2.2>
  3. on the server, get to the main repo root e.g. cd ~/MusicCPRFrontEndDev
  4. pull on server git pull
  5. checkout a new worktree for the recently pushed/fetched/tagged version git worktree add ../fe-dev-versions/v0.2.2 v0.2.2
  6. npm i #beware that probably we should not track package-lock.json nor yarn.lock since local and remote are different platforms and we depend on platform-specific tools /-:
  7. create .env.local and .env.production with content like this (and look at what we're using already on server)
    • SECRET=<RANDOM STRING>
  8. npm run build