@0x4447/broccoli 中文文档教程

发布于 6年前 浏览 28 项目主页 更新于 3年前

Broccoli

如果您是一名开发人员,为了使用自定义本地域名提供本地网页以模拟真实世界的场景而使用本地 Nginx 设置,那么您肯定经历过创建 Nginx 配置文件所涉及的繁琐工作:复制并粘贴一个模板,修改新文件,保存文件,重新加载Nginx配置文件,重启服务器。

在这个时代,用几十台微型服务器来做这件事真的很痛苦。

我们决定通过创建这个自动化一切的小型 CLI 来简化流程并让我们的生活更简单一些。

我们希望您会发现西兰花和我们一样有用。

How to install

] sudo npm install -g @0x4447/broccoli

How to use

] sudo broccoli -s .

Where to get help

] broccoli -h

What to expect

按照屏幕上的说明操作。 该应用程序将为您执行以下操作:

  • Ask the right questions ;)
  • Create a config file
  • Save the config file to the Nginx directory
  • Restart Nginx

Companion Software

此 CLI 工具还适用于以下软件:

  • Hot Pepper: Set up SystemD as the process manager for your NodeJS server with one simple command.

The End

如果您喜欢这个项目,请考虑给它一个 ????。 并查看我们的 0x4447 GitHub 帐户,其中包含您可能会觉得有用或有趣的其他资源。

该项目由 0x4447 LLC 提供,这是一家专门在 AWS 上构建自定义解决方案的软件公司。 点击此链接了解更多信息:https://0x4447.com。 或者,发送电子邮件至 hello@0x4447.email

???? Broccoli

If you're a developer with a local Nginx setup for the purpose of delivering local web pages with custom local domain names to mimic a real world scenario, you've definitely experienced the tedious work involved in creating Nginx config files: copy and paste a template, change the new file, save the file, reload the Nginx configuration file, and restart the server.

In this day and age, doing this with dozens of micro servers is truly a pain.

We decided to streamline the process and make our lives a bit simpler by creating this small CLI that automates everything.

We hope you'll find Broccoli as useful as we do.

How to install

] sudo npm install -g @0x4447/broccoli

How to use

] sudo broccoli -s .

Where to get help

] broccoli -h

What to expect

Follow the instructions on the screen. The app will do the following for you:

  • Ask the right questions ;)
  • Create a config file
  • Save the config file to the Nginx directory
  • Restart Nginx

Companion Software

This CLI tool also works well with the following software:

  • Hot Pepper: Set up SystemD as the process manager for your NodeJS server with one simple command.

The End

If you enjoyed this project, please consider giving it a ????. And check out our 0x4447 GitHub account, which contains additional resources you might find useful or interesting.

This project is brought to you by 0x4447 LLC, a software company specializing in building custom solutions on top of AWS. Follow this link to learn more: https://0x4447.com. Alternatively, send an email to hello@0x4447.email.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文