Will & Skill Developers

Will & Skill Developers


Thoughts, snippets and ideas from the team at Will & Skill AB, Stockholm.

Mohammed H
Author

Share


How to deploy a firebase project

Mohammed HMohammed H
npm install firebase-tools --save

Authenticate to firebase

firebase login

Initialize as firebase project

firebase init

Deploy to firebase

firebase deploy

When prompt select the following:

? What Firebase do you want to use? (*Select your project*)
? What directory should be the public root? (*Select your static directory, eg. www*)

Custom deploy shellscript

I wrote a custom script in order to easily deploy my firebase project. What this basically does is that it removes my static dir and fireabase.json. Runs my gulp deploy task, firebase init and deploys to firebase.

rm -r ./www
rm -r firebase.json
gulp deploy
firebase init
firebase deploy
Mohammed H
Author

Mohammed H

Comments