2017 © Pedro Peláez
 

library shellax

Some shell helper commands for laravel applications

image

mk-conn/shellax

Some shell helper commands for laravel applications

  • Monday, March 26, 2018
  • by mk-conn
  • Repository
  • 1 Watchers
  • 1 Stars
  • 369 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 8 % Grown

The README.md

Shellax

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Laravel package to ease deployments - running tasks after deploy/install like cache cleaning, adding supervisor programms ..., (*2)

Install

Via Composer, (*3)

``` bash $ composer require mk-conn/shellax, (*4)


## Usage In your `config/app.php` add the Shellax service provider like so: ```php 'providers' => // ... other providers MkConn\Shellax\Providers\ShellaxServiceProvider::class,

Publish the shellax config, (*5)

php artisan vendor:publish --provider="MkConn\Shellax\Providers\ShellaxServiceProvider"

Available artisan commands, (*6)

php artisan shellax:postintall
php artisan shellax:supervisor-register
php artisan shellax:setup-cron

Configuration

Example configuration, (*7)

<?php

$dir = __DIR__;
$dir = realpath($dir . '/..');

return [
    // post install tasks - e.g. cache clearing, running migrations, etc...
    'postinstall' => [
        'artisan' => [
            'shellax:supervisor-register' => [
                '--name'     => 'your-fancy-name-here',
                '--user'     => 'nginx', // user to run the following command
                '--command'  => "/usr/bin/php {$dir}/artisan queue:work --tries=3 --timeout=10",
                '--logfile'  => '/var/log/laravel-queue.log',
                '--numprocs' => '4', // number of processes to run by supervisor
            ]
        ],
        'shell' => [
            '/etc/whatever-should-run -arg1'   
        ]
    ],
    'supervisor'  => [
        'config_dir'         => env('SUPERVISOR_CONFIG_DIR', '/etc/supervisor.d'),
        'config_ext'         => env('SUPERVISOR_CONFIG_EXT', '.conf'),
        'supervisor_bin_dir' => env('SUPERVISOR_BIN_DIR', '/usr/bin')
    ]
];

Change log

Please see CHANGELOG for more information what has changed recently., (*8)

Testing

bash $ composer test, (*9)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*10)

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

26/03 2018

dev-master

9999999-dev https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

laravel lumen artisan shell supervisor

26/03 2018

0.3.9

0.3.9.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

laravel lumen artisan shell supervisor

07/10 2017

0.3.8

0.3.8.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

laravel lumen artisan shell supervisor

07/10 2017

0.3.7

0.3.7.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

laravel lumen artisan shell supervisor

02/10 2017

0.3.6

0.3.6.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

laravel lumen artisan shell supervisor

22/09 2017

0.3.5

0.3.5.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan shell supervisor

04/07 2017

0.3.4

0.3.4.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan shell supervisor

03/07 2017

0.3.3

0.3.3.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan shell supervisor

03/07 2017

0.3.2

0.3.2.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan shell supervisor

03/07 2017

0.3.1

0.3.1.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan shell supervisor

30/06 2017

0.3.0

0.3.0.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan shell supervisor

29/06 2017

0.2.0

0.2.0.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan shell supervisor

29/06 2017

0.1.1

0.1.1.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan shell supervisor

29/06 2017

0.1.0

0.1.0.0 https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan shell supervisor

27/06 2017

0.0.1a

0.0.1.0-alpha https://github.com/mk-conn/shellax

Some shell helper commands for laravel applications

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel artisan shell supervisor