Deploy a Flutter Web app to revenexx Storefronts

Learn how to setup and deploy Flutter Web apps on revenexx Storefronts.

Create Flutter Web app

First, create a Flutter Web app.

Open your terminal, and run the following command.

Bash
flutter create my_app

In case you have an existing Flutter app and want to add web support to it, you must run the following command in your project directory:

Bash
flutter create . --platforms web

Push this project to a GitHub repository.

Sign in to Cockpit

Open Cockpit and select the tenant you're deploying for. If this is your first time using revenexx, create your account first.

Create site

In Cockpit, go to Experience Studio → Sites, create a new site, and choose the Git path.

Connect your GitHub account and select the repository you intend to deploy (or allow all repositories, for future ease).

  1. Select the production branch and root directory from your repo.
  2. Verify that the correct framework is selected. In case an incorrect framework is visible, pick Flutter Web from the drop-down list.
  3. Confirm the install command, build command, and output directory in the build settings. The default build settings for Flutter Web are:
    • Install command: flutter pub get
    • Build command: flutter build web --release -t lib/main.dart
    • Output directory: ./build/web
  4. Add any environment variables required by the storefront. This is not necessary if you're deploying the starter app.

Click on the Deploy button.

Visit site

After successful deployment, click on the Visit site button.

Was this page helpful?