Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

RxReader/simple_pub_server

Repository files navigation

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