4 个版本 (2 个稳定版本)

1.0.1 2019 年 11 月 6 日
1.0.0 2018 年 3 月 13 日
0.0.1 2018 年 3 月 13 日
0.0.0 2018 年 3 月 1 日

#1790 in 网络编程

AGPL-3.0

35KB
532

meep 构建状态 Crates-io 使用 Spacemacs 构建

Rocket 驱动的简单粘贴服务。

安装

设置新实例很简单,但需要使用 Rust nightly 版本。

  1. 使用 cargo 通过 cargo +nightly install --force meep 安装 meep
    • 如果您没有使用 rustup 但仍然有 nightly 版本,请使用 cargo install --force meep 代替。
    • --force 标志确保您将任何当前安装更新到最新版本。
  2. 在您希望创建 meep.tomlmeep.db 的目录中运行 meep
    • 您还可以创建一个 Rocket.toml,这很有用,例如用于设置生产模板。
    • 您可以使用 MEEP_CONFIG 环境变量设置配置的具体路径。
  3. 在您的当前工作目录中的 templates/ 内安装一组模板以使用。
    • 您可以在 Rocket.toml 中配置此路径(包括每个环境)。
    • 您可以使用存储库中的默认模板作为起点。
  4. 编辑 meep.toml 中的配置,然后重新运行 meep
    • 您应该始终将生产实例的 ROCKET_ENV 设置为 production
    • 您还应确保通过 nginxapache 在代理后面部署 meep

示例配置

meep.toml

maintainer = "Aaron Weiss"
maintainer-email = "[email protected]"
meep-root = "https://commie.club/m"
database-url = "meep.db"
default-theme = "InspiredGitHub"
extra-syntaxes-path = "syntaxes"

Rocket.toml

[development]
port = 8080
template_dir = "templates/"

[production]
port = 8080
template_dir = "prod_templates/"

手册页

meep(1)                              MEEP                              meep(1)

                       dMMMMMMMMb dMMMMMP dMMMMMP dMMMMb
                      dMP"dMP"dMPdMP     dMP     dMP.dMP
                     dMP dMP dMPdMMMP   dMMMP   dMMMMP"
                    dMP dMP dMPdMP     dMP     dMP
                   dMP dMP dMPdMMMMMP dMMMMMP dMP

SYNOPSIS
    <command> | curl --data-binary "@-" $MEEP_ROOT

DESCRIPTION
    Simply POST data to $MEEP_ROOT to paste

OPTIONS
    add /<ext> to resulting url for syntax highlighting
    add /<ext>/<theme> for syntax highlighting with a specific theme

THEMES
    default    $DEFAULT_THEME
    gh         InspiredGitHub
    light      Solarized (light)
    dark       Solarized (dark)

EXAMPLES
    (meep) cat src/main.rs | curl --data-binary "@-" $MEEP_ROOT
           $MEEP_ROOT/iVse
    (meep) firefox $MEEP_ROOT/iVse/rs

MAINTAINER
    Instance maintained by $MAINTAINER <$MAINTAINER_EMAIL>

SEE ALSO
    https://github.com/aatxe/meep

meep 0.0.0                                                             meep(1)

版本控制

meep 使用与其 Web API 相关的 语义版本控制。因此,主版本号的变更对应于现有路由的有效性变更,而次版本号的变更对应于新路由的增加。补丁版本号的变更将对应于不影响 Web API 的任何变更。

许可证

meep - a simple pasting service
Copyright (C) 2018 Aaron Weiss 

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

依赖项

~48MB
~821K SLoC