How to deploy flutter web app on heroku

preview_player
Показать описание
In this tutorial we will be looking at how to deploy your flutter web application from android studio to your heroku cloud environment using heroku CLI.

Terminal command used:

heroku login
git init
heroku git:remote -a build4heroku
heroku buildpacks:set diezep/flutter -a build4heroku
git add .
git commit -am "first deployment"
git push heroku main
Рекомендации по теме
Комментарии
Автор

Thanks - flutter web is so slow on loading (:

MeemCode
Автор

how can i build my flutter web app without sound-null-safety in heroku console ?
now heroku automatically build in with sound null safety, i need without sound null safety.

codboxer
Автор

I was following your steps and used your github sample code, and this code could also run in local. But when I used "git push heroku main", the error show that
"Compiling lib/main.dart for the Web...
remote: Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
remote:
How can I fix this?

yijuwu