project idxで作ったflutter appをfirebase経由でデプロイする

 

  1. project idxでflutter projectを一つ作る

  2. firebaseでプロジェクトを作る

  3. project idxのterminalで’firebase init’として、つくったfirebaseプロジェクトを選択

  4. Hostingを選択(ここはEnter keyじゃなくてスペースバー)

  5. use an existing project

  6. What do you want to use as your public directory?と聞かれたら、build/webと入力します。

  7. Configure as a single-page app (rewrite all urls to /index.html)?と聞かれたら、Yesと入力します。

  8. Set up automatic builds and deploys with GitHub? (y/N)  これはNo

  9. ? What do you want to use as your public directory? build/web

  10. ? Configure as a single-page app (rewrite all urls to /index.html)? Yes

  11. ? Set up automatic builds and deploys with GitHub? No

  12. flutter build web

  13. firebase deploy

アーカイブ

もっと見る