Skip to content
/ app-host Public
forked from pluosi/app-host

应用内网发布 | iOS OTA (Over-the-Air) | APP publish website like fir.im | 适用于企业 iOS & Android 内网发布测试使用,方便管理和分发 APP 包

License

Notifications You must be signed in to change notification settings

idoop/app-host

This branch is 56 commits behind pluosi/app-host:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

44cb4cd · Jan 8, 2018

History

73 Commits
Dec 23, 2017
Aug 1, 2017
Jan 3, 2018
Nov 2, 2017
Jan 3, 2018
Jan 5, 2018
Aug 1, 2017
Aug 25, 2017
Dec 23, 2017
Aug 27, 2017
Aug 1, 2017
Aug 1, 2017
Jan 3, 2018
Jan 3, 2018
Jan 3, 2018
Jan 3, 2018
Jan 3, 2018
Jan 3, 2018
Jan 3, 2018
Dec 28, 2017
Jan 8, 2018
Aug 17, 2017
Aug 17, 2017
Aug 17, 2017

Repository files navigation

AppHost

MacDown logo

Build Status License Gems

介绍

一个轻量级的包托管网站,app-host 主要用于 iOS 和 Android 的包管理,作用类似于fir.im,不同之处是可以自由部署在内网,方便了公司项目保密。并且代码开源也可以方便根据各自需求进行定制化开发。

目前能实现

1.新建包
2.包底下新建渠道( iOS,安卓,各种环境都归为渠道,例如 iOS 生产,iOS 沙盒,iOS 越狱版,Android 生产等)
3.渠道下面上传包
4.帐号和权限管理
5.api 和页面表单上传包
6.解析包信息,包括 iOS 的包类型 ADHOC 还是 release,udid,安卓的签名证书等
7.我编不下去了···哈哈~~

用法 1 Docker

1. > git clone https://github.com/pluosi/app-host.git /opt/app-host
2. > cd /opt/app-host
3. > cp config/settings.local.example.yml config/settings.local.yml
4. 修改 config/settings.local.yml 中 `PROTOCOL` 和 `HOST` ,本地测试PROTOCOL可以为 http,生产环境必须设置为https,因为 iOS OTA 安装需要
5. > ./docker/launcher bootstrap -v #该步骤依赖网络,所以如果网络不稳定报错了,可以重试几次
6. > ./docker/launcher start
7. 尝试访问 http://localhost:3000 ,如果不希望用3000端口,可以手动修改 docker/launcher 里的`local_port`值

用法 2 源码运行

1. > git clone https://github.com/pluosi/app-host.git /opt/app-host
2. > cd /opt/app-host
3. > cp config/settings.local.example.yml config/settings.local.yml
4. 修改 config/settings.local.yml 中 `PROTOCOL` 和 `HOST` ,本地测试PROTOCOL可以为 http,生产环境必须设置为https,因为 iOS OTA 安装需要
5. bundle install
6. rails s
7. 关于部署到生成环境的话请参照一下 rails puma 部署等教程,需要修改一下 config/deply.rb 的部署地址
8. 尝试访问 http://localhost:3000

关于 https

  1. https其实不属于本项目涉及的范畴,大家可以 google 一下 https 证书配置,挂 nginx 或者 apache 上都行,有条件的可以购买域名证书,没条件的自签名证书也是可以的

已知问题

  1. 目前只以单线程运行,因为ruby_android这个 gem 在解压 apk 时内存消耗很大,开的线程多了会跑满内存被系统干掉。当然,机器内存大的可以直接修改 config/puma.rb 里的 threads_max 数量

License

AppHost is released under the MIT license. See LICENSE for details.

截图-PC

MacDown logo

MacDown logo

MacDown logo

截图-Mobile

MacDown logo

MacDown logo

MacDown logo

About

应用内网发布 | iOS OTA (Over-the-Air) | APP publish website like fir.im | 适用于企业 iOS & Android 内网发布测试使用,方便管理和分发 APP 包

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 67.2%
  • HTML 18.1%
  • CSS 9.6%
  • Shell 4.0%
  • Other 1.1%