You can select either to use an existing Firebase project or to create a For each selected platform, the FlutterFire CLI creates a new The flutterfire configure workflow does the following:Īsks you to select the platforms (iOS, Android, Web) supported in yourįlutter app. Use the FlutterFire CLI to configure your Flutter apps to connect to Firebase.įrom your Flutter project directory, run the following command to start theĪpp configuration workflow: flutterfire configure Step 2: Configure your apps to use Firebase Install the FlutterFire CLI by running the following command from anyĭirectory: dart pub global activate flutterfire_cli Log into Firebase using your Google account by running the following Step 1: Install the required command line tools If you don't already have a Flutter app, you can complete the GetĬreate a new Flutter app using your preferred editor or IDE. Operating system, including the following: Connect to the Cloud Functions emulator.Connect to the Cloud Storage for Firebase emulator.Connect to the Realtime Database emulator.Once I checked that the webapp looked ok, I merged the PR, which triggered the compilation and deploy to the live domain. Then I tried to create a PR, and it successfully compiled the app and deployed to a temporary domain. That's brilliant.īy the way, in the actions, I also had to manually add this line before flutter build web: - uses: is so that it installs the Flutter environment before attempting to compile. Looks like Firebase bought the web.app domain. The other deploys to the live channel, which looks like. One compiles the app and deploys to a temporary domain. The script generates firebase.json and a. I Writing configuration info to firebase.json. I Action required: Push any new workflow file(s) to your repo I Action required: Visit this URL to revoke authorization for the Firebase CLI GitHub OAuth App: ✔ Created workflow file /Users/anhtuan/git//.github/workflows/firebase-hosting-merge.yml ? What is the name of the GitHub branch associated with your site's live channel? main ? Set up automatic deployment to your site's live channel when a PR is merged? Yes ✔ Created workflow file /Users/anhtuan/git//.github/workflows/firebase-hosting-pull-request.yml ? What script should be run before every deploy? flutter build web ? Set up the workflow to run a build script before every deploy? Yes I You can manage your secrets at /settings/secrets. ✔ Uploaded service account JSON to GitHub as secret FIREBASE_SERVICE_ACCOUNT_. ✔ Created service account github-action- with Firebase Hosting admin permissions. ? For which GitHub repository would you like to set up a GitHub workflow? (format: user/repository) atn832/ I Authorizing with GitHub to upload your service account to a GitHub repository's secrets store. Assuming /Users/anhtuan/git/agaskin_manual is the project root. You can create multiple project aliases by running firebase use -add,īut for now we'll just set up a default project. * You are initializing within an existing Firebase project directoryįirst, let's associate this project directory with a Firebase project. You're about to initialize a Firebase project in this directory: The most important one was this: What script should be run before every deploy? flutter build web % firebase init hosting:github It told he I should run firebase init hosting:github. Here's how I did it.įirst I went over to. I wanted to automatically compile and deploy a Flutter web app to Firebase Hosting as I merged a PR to the main branch on GitHub.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |