Publish production
This commit is contained in:
parent
0f4e4df04e
commit
7a4d31ad7d
5 changed files with 24 additions and 33 deletions
|
@ -1,5 +1,9 @@
|
||||||
# production
|
# angel3_production
|
||||||
[![Pub](https://img.shields.io/pub/v/angel_production.svg)](https://pub.dartlang.org/packages/angel_production)
|
[![version](https://img.shields.io/badge/pub-v3.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_production)
|
||||||
|
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||||
|
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
|
||||||
|
|
||||||
|
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/production/LICENSE)
|
||||||
|
|
||||||
Helpers for concurrency, message-passing, rotating loggers, and other production functionality in Angel.
|
Helpers for concurrency, message-passing, rotating loggers, and other production functionality in Angel.
|
||||||
|
|
||||||
|
@ -19,8 +23,8 @@ application:
|
||||||
```dart
|
```dart
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:isolate';
|
import 'dart:isolate';
|
||||||
import 'package:angel_framework/angel_framework.dart';
|
import 'package:angel3_framework/angel3_framework.dart';
|
||||||
import 'package:angel_production/angel_production.dart';
|
import 'package:angel3_production/angel3_production.dart';
|
||||||
|
|
||||||
main(List<String> args) => Runner('example', configureServer).run(args);
|
main(List<String> args) => Runner('example', configureServer).run(args);
|
||||||
|
|
||||||
|
@ -42,7 +46,7 @@ infrastructure.
|
||||||
When combined with `systemd`, deploying Angel applications on Linux can be very simple.
|
When combined with `systemd`, deploying Angel applications on Linux can be very simple.
|
||||||
|
|
||||||
## Message Passing
|
## Message Passing
|
||||||
The `Runner` class uses [`package:pub_sub`](https://github.com/thosakwe/pub_sub) to coordinate
|
The `Runner` class uses [`package:angel3_pub_sub`](https://github.com/dukefirehawk/angel/tree/angel3/packages/pub_sub) to coordinate
|
||||||
message passing between isolates.
|
message passing between isolates.
|
||||||
|
|
||||||
When one isolate sends a message, all other isolates will
|
When one isolate sends a message, all other isolates will
|
||||||
|
@ -80,7 +84,7 @@ print('This is instance #${instanceInfo.id}');
|
||||||
The `Runner` class supplies options like the following:
|
The `Runner` class supplies options like the following:
|
||||||
|
|
||||||
```
|
```
|
||||||
Tobes-MacBook-Air:production thosakwe$ dart example/main.dart --help
|
Prod-MacBook-Air:production appuser$ dart example/main.dart --help
|
||||||
____________ ________________________
|
____________ ________________________
|
||||||
___ |__ | / /_ ____/__ ____/__ /
|
___ |__ | / /_ ____/__ ____/__ /
|
||||||
__ /| |_ |/ /_ / __ __ __/ __ /
|
__ /| |_ |/ /_ / __ __ __/ __ /
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:isolate';
|
import 'dart:isolate';
|
||||||
import 'package:angel_framework/angel_framework.dart';
|
import 'package:angel3_framework/angel3_framework.dart';
|
||||||
import 'package:angel_production/angel_production.dart';
|
import 'package:angel3_production/angel3_production.dart';
|
||||||
import 'package:pub_sub/pub_sub.dart' as pub_sub;
|
import 'package:angel3_pub_sub/angel3_pub_sub.dart' as pub_sub;
|
||||||
|
|
||||||
void main(List<String> args) => Runner('example', configureServer).run(args);
|
void main(List<String> args) => Runner('example', configureServer).run(args);
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'dart:isolate';
|
import 'dart:isolate';
|
||||||
import 'package:angel_container/angel_container.dart';
|
import 'package:angel3_container/angel3_container.dart';
|
||||||
import 'package:angel_framework/angel_framework.dart';
|
import 'package:angel3_framework/angel3_framework.dart';
|
||||||
import 'package:angel_framework/http.dart';
|
import 'package:angel3_framework/http.dart';
|
||||||
import 'package:angel_framework/http2.dart';
|
import 'package:angel3_framework/http2.dart';
|
||||||
import 'package:args/args.dart';
|
import 'package:args/args.dart';
|
||||||
import 'package:io/ansi.dart';
|
import 'package:io/ansi.dart';
|
||||||
import 'package:io/io.dart';
|
import 'package:io/io.dart';
|
||||||
import 'package:logging/logging.dart';
|
import 'package:logging/logging.dart';
|
||||||
import 'package:pub_sub/isolate.dart' as pub_sub;
|
import 'package:angel3_pub_sub/isolate.dart' as pub_sub;
|
||||||
import 'package:pub_sub/pub_sub.dart' as pub_sub;
|
import 'package:angel3_pub_sub/angel3_pub_sub.dart' as pub_sub;
|
||||||
import 'instance_info.dart';
|
import 'instance_info.dart';
|
||||||
import 'options.dart';
|
import 'options.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,26 +1,13 @@
|
||||||
name: angel_production
|
name: angel3_production
|
||||||
version: 3.0.0
|
version: 3.0.0
|
||||||
description: Helpers for concurrency, message-passing, rotating loggers, and other production functionality in Angel.
|
description: Helpers for concurrency, message-passing, rotating loggers, and other production functionality in Angel.
|
||||||
homepage: https://github.com/dukefirehawk/angel
|
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/production
|
||||||
publish_to: none
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angel_container:
|
angel3_container: ^3.0.0
|
||||||
git:
|
angel3_framework: ^4.0.0
|
||||||
url: https://github.com/dukefirehawk/angel.git
|
angel3_pub_sub: ^3.0.0
|
||||||
ref: sdk-2.12.x_nnbd
|
|
||||||
path: packages/container/angel_container
|
|
||||||
angel_framework:
|
|
||||||
git:
|
|
||||||
url: https://github.com/dukefirehawk/angel.git
|
|
||||||
ref: sdk-2.12.x_nnbd
|
|
||||||
path: packages/framework
|
|
||||||
pub_sub:
|
|
||||||
git:
|
|
||||||
url: https://github.com/dukefirehawk/angel.git
|
|
||||||
ref: sdk-2.12.x_nnbd
|
|
||||||
path: packages/pub_sub
|
|
||||||
args: ^2.1.0
|
args: ^2.1.0
|
||||||
io: ^1.0.0
|
io: ^1.0.0
|
||||||
logging: ^1.0.1
|
logging: ^1.0.1
|
||||||
|
|
Loading…
Reference in a new issue