定制 alfred-nutile-inc/setup 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

alfred-nutile-inc/setup

Composer 安装命令:

composer require alfred-nutile-inc/setup

包简介

Setup apps in one command for local work

README 文档

README

This requires some conventions noted below.

Pull it in via composer

composer require alfred-nutile-inc/setup

Then add it to your Kernel

	protected $commands = [
		'App\Console\Commands\Inspire',
		'AlfredNutileInc\CoreApp\SetUp\SetupCommand'
	];

Then

Setup

Git clone the repo to your homestead

The conventions for this setup is simple

Your local domain is the same as the repo name. If the repo is foo then foo.dev

The Command is

php artisan core-app:setup reponame

This will

  • setup the db as the name of the reponame
  • setup nginx and restart it as the domain name says above. You need to udpate you machine hosts file
  • copies .env.example to .env update it as needed.
  • sets up testing stub db for sqlite
  • composer install and dump-autoload
  • migrates
  • bower install
  • npm install

You can limit what to run like this

php artisan core-app:setup reponame --run=SetupServerConfig --run=SetupFrontEnd

Conventions

Your local env is named after the repo name and .dev so repo foo is foo.dev local

SSL is always default. https://github.com/alfred-nutile-inc/internal_practices/blob/master/ssl.md for help on this.

Adding to the package

Just add your step to app/SetUp/SetupCommand.php:93

        SetupDeploymentScripts::fire($this);
        SetupEnv::fire($this);
        SetupDb::fire($this);
        RunMigrations::fire($this);
        SetupTesting::fire($this);
        SetupFrontEnd::fire($this);
        SetupServerConfig::fire($this);

RoadMap

  • Flags to run only some/one of the steps php artisan core-app:setup reponame --SetupEnv --SetupDevelopmentScripts
  • Plugin steps that are part of the project and not part of this repo.
  • One command to setup Ec2, RDS etc
  • S3 setup
  • Setup git repo dev, prod, staging and delete master

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-03-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固