Deployment - acm-csula/ACM-Main-Website GitHub Wiki
How to deploy the website with Firebase?
Using the command line while in your project directory (prefer: master branch):
npm run build
- It is good practice to update the CLI:
npm install -g firebase-tools
firebase login
firebase projects:list
- No need to do
firebase init
. The purpose of firebase init
is to create firebase.json and .firebaserc, which we already have.
- Strongly recommend:
firebase serve
to test locally on Firebase before deploying. Refresh or change pages if you don't see your new changes.
firebase deploy -m "Type your comment"
firebase logout
- Note: In firebase.json, it must have "public":"build". Otherwise, the deployed website will show a blank page.
- Always do
npm run build
before deploying again.