conda-forge使用_使用Laravel Forge轻松部署PHP应用

conda-forge使用

什么是Laravel Forge? (What is Laravel Forge?)

Forge is an incredible tool in the family of Laravel products that helps developers focus on developing, not deploying and hosting. I personally use it when deploying Laravel applications and it does make life much easier.

Forge是Laravel产品系列中令人难以置信的工具,可帮助开发人员专注于开发而不是部署和托管。 我在部署Laravel应用程序时亲自使用它,它确实使工作变得更加轻松。

Many of the pain points of hosting are taken care of for you so you can get right back to developing. Forge takes care of things like:

托管服务的许多痛点已为您解决,因此您可以重新开始发展。 Forge负责以下工作:

  • Creating and provisioning a new server

    创建和配置新服务器
  • Setting up SSH keys

    设置SSH密钥
  • Creating domains and subdomains

    创建域和子域
  • Deploying from GitHub

    从GitHub部署
  • Save common bash scripts and re-run them on many servers

    保存常见的bash脚本并在许多服务器上重新运行
  • Configure scheduled cron jobs

    配置计划的cron作业
  • Firewall and security pre-configured

    防火墙和安全性已预先配置
  • Configure New Relic and other services

    配置新的遗物和其他服务
  • Install SSL Certs

    安装SSL证书

Forge can do much more, but those are the main things that it will take care of for you.

Forge可以做更多的事情,但这是它将为您解决的主要问题。

laravel-forge-home-page

This article assumes you have a bit of knowledge about how Digital Ocean (or Linode) and VPSs (virtual private servers) work.

本文假定您对Digital Ocean (或Linode )和VPS(虚拟专用服务器)如​​何工作有一定的了解。

We'll be diving into how we can deploy a Laravel application to Forge using Digital Ocean and GitHub.

我们将深入探讨如何使用Digital Ocean和GitHub将Laravel应用程序部署到Forge。

Laravel Forge如何工作? (How Does Laravel Forge Work?)

You can think of Forge as a GUI or interface for maintaining your Digital Ocean servers (also called droplets) easily.

您可以将Forge视为易于维护Digital Ocean服务器(也称为Drops)的GUI或界面。

The steps to using Forge are pretty simple. The gist of it is:

使用Forge的步骤非常简单。 其要点是:

  1. Link your cloud provider (Digital Ocean in this case)

    链接您的云提供商(在这种情况下为Digital Ocean)
  2. Create a server

    创建一个服务器
  3. Create a site (a default site is already provided per server)

    创建一个站点(每个服务器已经提供一个默认站点)
  4. Link site to a GitHub repo

    将站点链接到GitHub存储库
  5. Deploy!

    部署!

But Digital Ocean is already easy enough you say? Yes it is, but there are a lot of great features that Forge gives you so that creating and configuring many servers becomes an easy and repeatable process.

但是您说的数字海洋已经足够容易了吗? 是的,但是Forge提供了许多出色的功能,因此创建和配置许多服务器变得容易且可重复。

为什么要使用Forge? (Why Use Forge?)

Geared towards Laravel hosting This is an obvious one. A product build by Taylor Otwell and Laravel is naturally going to help out its sister products. Each server configured through Forge comes with:

面向Laravel托管这是显而易见的。 泰勒·奥特威尔(Taylor Otwell)和拉拉维尔(Laravel)制造的产品自然会帮助其姊妹产品。 通过Forge配置的每个服务器都具有:

  • Ubuntu 14.04

    Ubuntu 14.04
  • PHP 5.6

    PHP 5.6
  • Nginx

    Nginx的
  • Postgres

    Postgres
  • Redis

    雷迪斯
  • HHVM Ready

    支援HHVM

Instantly configure domains and subdomains Forge gives us the ability to create domains and subdomains on the fly. It will configure the domain in Nginx, map it to the appropriate directory, and get a site up and running.

即时配置域和子域 Forge使我们能够动态创建域和子域。 它将在Nginx中配置域,将其映射到适当的目录,并使站点启动并运行。

Deploy sites from GitHub This makes life much easier as a developer. By default, sites are manually deployed so you'll have to click Deploy. You can also set it to auto deploy so that deployment happens whenever you push to your repository.

从GitHub部署站点这使开发人员的工作变得更加轻松。 默认情况下,站点是手动部署的,因此您必须单击Deploy 。 您还可以将其设置为自动部署,以便每当您推送到存储库时都会进行部署。

Reusable bash s

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值