Skip to content
Dart/Flutter private pub server
Dart
Branch: master
Clone or download
Latest commit fc784d6 May 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib 修正docker无法访问 Mar 12, 2019
.drone.yml xxx Mar 12, 2019
.gitattributes 初始化 Mar 11, 2019
.gitignore 初始化 Mar 11, 2019
CHANGELOG.md 初始化 Mar 11, 2019
Dockerfile 初始化 Mar 11, 2019
LICENSE 初始化 Mar 11, 2019
README.md Update README.md May 3, 2019
analysis_options.yaml 初始化 Mar 11, 2019
docker-compose.yml xxx Mar 12, 2019
pubspec.yaml 初始化 Mar 11, 2019

README.md

simple_pub_server

Build Status Docker Pulls License

Dart private pub_server

usage

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

push dart packages or flutter packages/plugins to private pub_server

# dart
pub publish --server http://${your domain}

# flutter
flutter packages pub publish --server http://${your pub_server domain}

China - Shadowsocks

import dart packages or flutter packages/plugins from private pub_server

Pub-Dependencies

test:
  hosted:
    name: test # name of your package/plugin
    url: http://${your pub_server domain}
  version: ^0.0.1
You can’t perform that action at this time.