Reputation: 1102
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.
Update: If anyone has similar question apache worked with flutter website
Upvotes: 0
Views: 1247
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