承接 timberhub/laravel-deployments 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

timberhub/laravel-deployments

最新稳定版本:v0.2.18

Composer 安装命令:

composer require timberhub/laravel-deployments

包简介

A simple CLI tool to deploy Laravel applications.

README 文档

README

This a repository/package that can be used to deploy your Laravel application to a server. The main and final outcome are commands with parameters on target servers and extra actions that need to take place.

Usage

You can use it either by installing it to your Laravel project or in a GitHub Action. (We will further update soon with a GitHub Action Marketplace link)

Install to your Laravel project

Install the package with composer:

composer require timberhub/laravel-deployments

Use the command helper to adjust the parameters. e.g:

./vendor/bin/ci-actions branch:deploy:forge -h

Deploy to a Forge Server

Use the following command to deploy your application to a Forge server like this:

./vendor/bin/ci-actions branch:deploy:forge \
  --token=[FORGE_API_TOKEN] \
  --server=[FORGE_SERVER_ID] \
  --branch=[BRANCH_NAME] \
  --repository=[REPOSITORY_URL] \
  --branch=[BRANCH_NAME] \
  --domain=[DOMAIN_NAME] \
  --php-version=[PHP_VERSION] \
  --db-name=[DB_NAME] \
  --db-user=[DB_USER] \
  --db-password=[DB_PASSWORD]

Then you can add extra parameters like the environment variables you want to set on the server, or commands that you want to run after the deployment. Those commands could be your own deployment script to finalize the installation of your application.

PS: Make sure your domain name points to the server you are deploying to before you run the command. The deployment URL will look like https://[BRANCH_NAME].[REPOSITORY_NAME][DOMAIN_NAME]..

Create a release

git tag -a [version] -m "[title]"
git push origin tag [version]

统计信息

  • 总下载量: 2.1k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固