what could be a deployment strategy with pubspec on dart

前端 未结 3 1249
眼角桃花
眼角桃花 2021-01-17 18:38

What would be the best way to actually deploy dart code that has pubspec.yaml dependencies? A common thing I\'ve done in the past was to create demos and deploy to github pa

相关标签:
3条回答
  • 2021-01-17 18:52

    We aren't there yet, but pub will in the future support a deploy command. That will do things like run dart2js and concatenate/minify your code. It will also physically bring in all of your dependencies so you don't have symlinks. The end result will be a single directory that contains everything your package needs to run.

    0 讨论(0)
  • 2021-01-17 18:52

    I think you have three options:

    • If you already have a server-side technology and a deployment strategy, use that.
    • If you're just deploying static stuff, I wonder if Google App Engine would work with these symlinks.
    • Heroku supports Dart, although I'm not sure how it supports symlinks.
    0 讨论(0)
  • 2021-01-17 18:57

    You can deploy your Dart application on Heroku cloud hosting. There is a step-by-step tutorial here.

    It works nice.

    0 讨论(0)
提交回复
热议问题