Skip to main content

Build code and setup on server

For building web data for deployment, you have to run command:

flutter build web --web-renderer html --release

Build file location: <project>/build/web/

After running the command, Go to /build/web/ and copy all files from this folder and upload it to your domain. There are some files are hidden, you have to take them them also like (.htaccess).

info

You can not deploy admin and web at same domain. In that case you can use subdomain for one. Like you can deploy your admin at https://admin.your_domain.com and web at https://your_domain.com. And in app code you have to use base url as https://admin.your_domain.com.

tip

Recommended tutorial is below 👇