Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source 'https://rubygems.org'
source 'https://gems.ruby-china.org'

gem 'sinatra'
gem 'thin'
gem 'thin'
6 changes: 1 addition & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
GEM
remote: https://rubygems.org/
remote: https://gems.ruby-china.org/
specs:
concurrent-ruby (1.0.5)
daemons (1.2.6)
eventmachine (1.2.5)
mustermann (1.0.2)
psych (3.0.2)
rack (2.0.4)
rack-protection (2.0.1)
rack
Expand All @@ -24,8 +22,6 @@ PLATFORMS
ruby

DEPENDENCIES
concurrent-ruby
psych
sinatra
thin

Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ POST https://sorry.xuty.tk/api/<template_name>/make

## 部署指南

### 使用Docker
### 使用Docker镜像快速启动
```
docker run -d -p 4567:4567 daocloud.io/sorry/gif:master
```

### 自行构建Docker Image启动
```
docker build -t sorry .
docker run --rm -it -p 4567:4567 sorry
Expand All @@ -82,7 +87,7 @@ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/

# [可选] Linux服务器一般需要安装中文字体
apt install language-pack-zh-hans
apt install ttf-wqy-microhei
apt install ttf-wqy-microhei

# 安装编译依赖
apt install ruby-dev build-essential
Expand Down