yiendos/my-sites-ide

一款 DevOps 工具包,让您能够轻松创建新的开发环境,并轻松连接持续部署/集成流程。

安装: 30

依赖项: 0

建议者: 0

安全性: 0

星标: 1

关注者: 2

分支: 0

开放问题: 4

类型:my-sites-ide

v1.3.1 2021-05-23 09:51 UTC

This package is auto-updated.

Last update: 2024-09-10 22:26:32 UTC


README

Screenshot

my-sites-ide

my-sites-ide 旨在提供一种简单的方式,在需要时快速启动新的 PHP 开发环境

composer global require yiendos/my-sites-ide

创建新的游戏区域,或者您可以将 IDE 集成到现有项目中。只需导航到您选择的文件夹并运行

mysites setup

然后

[项目名称] spark

以启动您的新游戏区域... 更多详细信息,请参阅 您的项目路径很重要

先决条件

以下是您主机系统的先决条件列表

  • Docker
  • php
  • composer

初始设置

现在,如果您尚未这样做,需要将全局 ~./composer/vendor/bin 添加到您的路径中。

为此,暂时为终端屏幕会话执行此操作

export PATH=$PATH:~/.composer/vendor/bin

有关更多永久性解决方案,请参阅 初始设置

Apple M1/ ARM64 芯片支持

注意,如果您想在 Arm64 芯片上使用此工具,我们需要对 MySQL 进行不同的处理。目前,仅支持 mysql:8.0

mysites setup -f docker-compose-arm.yml

控制您的 my-sites-ide

我们已经使与您的 my-sites-ide 的工作尽可能简单,作为 mysites setup 流程的一部分,我们在项目命名空间下还创建了这些命令。

所以,如果您的网站托管在 new-site 上,那么您的新终端命令将在 new-site 命名空间下可用

new-site 

Console Tool

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  douse    Temporarily pause your sites
  export   Export a database(s)
  help     Displays help for a command
  list     Lists commands
  panic    Kindle won't launch? This is our troubleshooting command
  restart  Made changes locally? Restart the corresponding docker container
  setup    Create the initial mysites  configuration file
  spark    Fire up your mysites IDE
  status   See the status of mysites containers
joomla
  joomla:create     Create a Joomla site
  joomla:delete     Delet a Joomla site
  joomla:vhost      Creates a new Apache2 and/or Nginx virtual host
wordpress
  wordpress:create  Create a WordPress site
  wordpress:delete  Nuke an existing site
  wordpress:vhost   Creates a new Apache2 and/or Nginx virtual host
xdebug
  xdebug:status     Enable or disable xdebug support

欢迎来到您的新游戏区域

数据库地址:-H 127.0.0.1 - P 3306 root:root

希望您在这里感到宾至如归!

使用 xdebug 调试项目

xdebug 是深入挖掘您的 Web 应用程序核心的必备工具。因此,当然,xdebug 是标准配置的一部分。有关使用 xdebug 和 my-sites-ide 的更多信息:https://github.com/yiendos/my-sites-ide/wiki/x-debug'ging-with-my-sites-ide

持续部署作为标准

my-sites-ide 来自于 8 年的部署流程(Jenkins、Travis、github actions)工作经验,并由此产生了 IDE。因此,为了完整地走一圈,我们为您提供了一个基本的 github actions 集成。

您会发现,在本地启动 IDE 非常容易,而且您甚至无需动手,就可以获得 github actions CD 支持!