Build & Deploy Flutter Web Application
Overview
This page runs you through the steps to build the web application and deploy in respective environment.
Steps
Follow the instructions here to set up the job pipeline. Ignore the steps not applicable to the front end.
Instructions here are provided assuming CD/CI has been set up using the DIGIT ci-as-code module.
Before setting up the job pipeline, make sure each project has a docker folder in the root folder of the project. The cirrusci flutter docker tag must be mentioned for building the application through Jenkins. Check the image below for reference.
The global assets inside the .env file should be loaded from the environment assets.
Note: The global assets file needs to be in JSON format for Flutter
Follow the sample config added in yaml files of the respective environment to load the global assets of works_shg_app.
dev yaml file : works-dev.yaml
Congrats!!! We are now ready to build and deploy the application on the web.
Last updated