Coder Social home page Coder Social logo

flutter_web_deploy's Introduction

Flutter Web Deploy

This tool allows to deploy flutter web app via FTP with one click. At the moment the program works only from Windows.

Installiation

Compile a project using VS, Rider or dotnet publish OR download a compiled executable from releases.
Then put the tool (FlutterWebDeploy.exe) into your flutter project directory (also you can create another folder and put the program here, for example project_dir/deployment). After that you'll have two ways to use it (below).

Option 1: Config file

Just open (or create) file flutter_web_deploy.yaml (it should be placed inside the program directory). And set the required properties: ftp_login, ftp_password, ftp_host and remote_path.
Note: don't forget to add file flutter_web_deploy.yaml into .gitignore.

Option 2: Program arguments

The second variant is to set options in the program arguments. Here is the main arguments list:

  -l, --login       FTP connection login.

  -p, --pass        FTP connection password.

  -h, --host        FTP host started with 'ftp.'

  --port            FTP connection port (21 is default).

  -f, --fast        Upload only main project files (skip images and etc.)

Run FlutterWebDeploy.exe --help to see all possible arguments.

Deploy

After configuring you can run FlutterWebDeploy.exe manually or add it as a configuration into Android Studio.

  1. Open Edit Configurations window, click add button, select Shell Script
  2. Set path to FlutterWebDeploy.exe into Script path field and path to project into Working directory field
  3. Optionally add program arguments (Script options field).
    Android Studio Configurations
    Congratulations! Now you can publish your application with a one click. Android Studio run

Questions

  • Q: How to add custom arguments to flutter build web?
  • A1: Just specify your custom arguments in flutter_web_deploy.yaml (flutter_custom_arguments property). Also you can set built-in options in flutter_arguments area:
flutter_arguments:
  no_sound_null_safety: true
  • A2: Or add your custom flutter arguments into a program arguments after --, like this: FlutterWebDeploy.exe --custom_args -- --profile

  • Q: Is it possible to use a config file combined with command line arguments?

  • A: Yes, it is. Note that command line arguments are always has a priority.

ToDo

  • MacOS and Linux platform support.

The tool is developed under .NET Core.

flutter_web_deploy's People

Contributors

rodion-m avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.