iosdev1111
iosdev1111

Reputation: 1102

Issues while deploying flutter website to server

I want to deploy flutter website to my own hosting server. For that i have done following steps.

1.  Go to the root folder of your project and do a build in release mode
 flutter build web


The next step is to deploy that folder and host it on server. But when i perform above step the folder is generated inside build folder, but source tree is not showing me build folder while commiting, What could be the issue here, I want to commit that folder to the branch.

  1. I am going to use apache web server for flutter web deployment. will this server work with flutter website?

Update: If anyone has similar question apache worked with flutter website

Upvotes: 0

Views: 1247

Answers (1)

esentis
esentis

Reputation: 4666

The build folder is usually in .gitignore that's why you don't see any changes after building it. After running the flutter build web, a web folder is created at build, this is the folder you need to upload at the public_html of your server. If you don't see at all the web folder after building, try a flutter clean && flutter pub get and rebuild it again.

Upvotes: 1

Related Questions