GithubHelp home page GithubHelp logo

tpg / attache Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 505 KB

A highly opinionated deployment tool for Laravel applications.

Home Page: https://tpg.github.io/attache/

License: MIT License

PHP 100.00%
deployment laravel php ssh

attache's People

Contributors

warrickbayman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

attache's Issues

Issue with releases:list command

When I try to run attache releases:list on my project i get the error below

PHP Fatal error: Uncaught Error: Call to a member function format() on bool in /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesListCommand.php:129
Stack trace:
#0 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesListCommand.php(106): TPG\Attache\Console\ReleasesListCommand->releaseDate('initial')
#1 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesListCommand.php(83): TPG\Attache\Console\ReleasesListCommand->buildTable(Array, '20200330104330')
#2 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesListCommand.php(55): TPG\Attache\Console\ReleasesListCommand->showOutput(Array, '20200330104330')
#3 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/Command.php(111): TPG\Attache\Console\ReleasesListCommand->fire()
#4 /Users/mac/.composer/vendor/symfony/console/Command/Command.php(255): TPG\Attache\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /Users/ in /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesListCommand.php on line 129

Fatal error: Uncaught Error: Call to a member function format() on bool in /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesListCommand.php:129
Stack trace:
#0 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesListCommand.php(106): TPG\Attache\Console\ReleasesListCommand->releaseDate('initial')
#1 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesListCommand.php(83): TPG\Attache\Console\ReleasesListCommand->buildTable(Array, '20200330104330')
#2 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesListCommand.php(55): TPG\Attache\Console\ReleasesListCommand->showOutput(Array, '20200330104330')
#3 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/Command.php(111): TPG\Attache\Console\ReleasesListCommand->fire()
#4 /Users/mac/.composer/vendor/symfony/console/Command/Command.php(255): TPG\Attache\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /Users/ in /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesListCommand.php on line 129

Extract the Laravel specifics.

Extract the Laravel specific stuff making Attache more generic and technology agnostic. Maybe look at a "driver" based approach where tasks for specific projects or frameworks could be leveraged.

attache deploy production --prune issue

attache deploy production --prune removing all releases except for live version, instead of live version plus previous version. This command also seems to break the site when I ssh into the server it won't let me navigate to the "live" folder it says this is not a directory I had to run attache deploy production without the --prune to get it to work again

Error when running **attache deploy production --prune**

PHP Fatal error: Uncaught TypeError: Argument 1 passed to TPG\Attache\ReleaseService::__construct() must be an instance of TPG\Attache\Server, null given, called in /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesPruneCommand.php on line 37 and defined in /Users/mac/.composer/vendor/thepublicgood/attache/src/ReleaseService.php:28
Stack trace:
#0 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesPruneCommand.php(37): TPG\Attache\ReleaseService->__construct(NULL)
#1 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/Command.php(111): TPG\Attache\Console\ReleasesPruneCommand->fire()
#2 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/DeployCommand.php(67): TPG\Attache\Console\Command->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/Command.php(111): TPG\Attache\Console\DeployCommand->fire()
#4 /Users/mac/.composer/vendor/symfony/cons in /Users/mac/.composer/vendor/thepublicgood/attache/src/ReleaseService.php on line 28

Fatal error: Uncaught TypeError: Argument 1 passed to TPG\Attache\ReleaseService::__construct() must be an instance of TPG\Attache\Server, null given, called in /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesPruneCommand.php on line 37 and defined in /Users/mac/.composer/vendor/thepublicgood/attache/src/ReleaseService.php:28
Stack trace:
#0 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/ReleasesPruneCommand.php(37): TPG\Attache\ReleaseService->__construct(NULL)
#1 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/Command.php(111): TPG\Attache\Console\ReleasesPruneCommand->fire()
#2 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/DeployCommand.php(67): TPG\Attache\Console\Command->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /Users/mac/.composer/vendor/thepublicgood/attache/src/Console/Command.php(111): TPG\Attache\Console\DeployCommand->fire()
#4 /Users/mac/.composer/vendor/symfony/cons in /Users/mac/.composer/vendor/thepublicgood/attache/src/ReleaseService.php on line 28

Issue seems to be with the --prune section of the command
works if you run attache deploy production then attache releases:prune production

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.