Presuposto: Ter a aplicação já conectada ao firebase, vamos apenas mostrar os comandos para publicar.
npm install -g firebase-tools
Os comandos devem ser executados dentro da pasta do projecto
flutter build web
firebase login
firebase init
? What do you want to use as your public directory? build/web
? Configure as a single-page app (rewrite all urls to /index.html)? No
? Set up automatic builds and deploys with GitHub? No
+ Wrote build/web/404.html
? File build/web/index.html already exists. Overwrite? No
i Skipping write of build/web/index.html
i Writing configuration info to firebase.json...
i Writing project information to .firebaserc...
+ Firebase initialization complete!
firebase deploy
Nenhum comentário:
Postar um comentário