Ubantu Dart服务器配置

  • 系统环境选择为UBanTu
    • 导入~/.profile
      • export PATH="$PATH:/usr/lib/dart/bin"
      • export PUB_HOSTED_URL=https://pub.flutter-io.cn
      • export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
      • export PATH="HOME/.pub-cache/bin"
    • source ~/.profile
  • 激活aqueduct:
    • pub global activate aqueduct
    • aqueduct create 你的项目名
    • dart bin/main.dart或者aqueduct serve即可启动
  • 安装PostgreSQL
    • https://www.postgresql.org/download/linux/ubuntu/

你可能感兴趣的:(Ubantu Dart服务器配置)