Dart private pub_server
docker-compose.yml
# 版本
version: "3.7"
# 服务
services:
simple_pub_server:
container_name: simple_pub_server
image: v7lin/simple_pub_server:0.1.5
restart: always
ports:
- 8080:8080
volumes:
- ../dev-ops-repo/simple_pub_server:/tmp/package-db
environment:
- TZ=${TIME_ZONE:-Asia/Shanghai}
- PUB_SERVER_REPOSITORY_DATA=/tmp/package-db
- PUB_SERVER_STANDALONE=true
# dart
pub publish --server http://${your domain}
# flutter
flutter packages pub publish --server http://${your pub_server domain}
test:
hosted:
name: test # name of your package/plugin
url: http://${your pub_server domain}
version: ^0.0.1