factorial-io / phabalicious Goto Github PK
View Code? Open in Web Editor NEWSupports your deployments and every-day devops-tasks
Home Page: http://docs.phab.io
License: MIT License
Supports your deployments and every-day devops-tasks
Home Page: http://docs.phab.io
License: MIT License
It would be neat to override the target folder when doing ftp-deployments. Then succsequent deployments will go faster as lftp will not treat every file as a new file and transfer it via ftp.
Unable build from source on commit ab3cbe3
$ composer build-phar
> box compile
sh: box: command not found
Script box compile handling the build-phar event returned with error code 127
should defaults to keep all backups, and should be configurable via the fabfile.
[notice] cd /home/stephan && docker exec xxx_web_1 mkdir -p /root/.ssh
[notice] cd /home/stephan && docker cp /Users/stephan/dev/web/multibasebox/projects/xxx/ssh-keys/docker-root-key xxx_web_1:/root/.ssh/id_rsa
lstat /Users: no such file or directory
In CommandResult.php line 51:
[Phabalicious\Exception\FailedShellCommandException]
`cd /home/stephan && docker cp /Users/stephan/dev/web/multibasebox/projects/xxx/ssh-keys/docker-root-key callrequestint_web_1:/root/.ssh/id_rs
a` failed!
PHP Warning: Uncaught ErrorException: Warning: require(phar:///usr/local/bin/phab/vendor/composer/../symfony/console/Event/ConsoleTerminateEvent.php): failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phab" (actual filesize mismatch on file "vendor/symfony/console/Event/ConsoleTerminateEvent.php") in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php:151
Stack trace:
#0 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(933): spl_autoload_call('Symfony\\Compone...')
#1 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(262): Symfony\Component\Console\Application->doRunCommand(Object(Phabalicious\Command\SelfUpdateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutp in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php on line 151
Seems like php can't find some classes after the app got replaced with the new one.
to reproduce:
phab -cmbb install
on that projectThis error should also show up on the reset-task without any configuration
on long running backups the user does not know what happens, so a short message would be neat
running scripts for deplyoment do not work:
hosts:
test:
deploy:
- echo "running deployment"
You can workaround by rename it to "deployFinished"
save the jira credentials in a fabfile.local, use lesstif/jiraClient and the shortname of the project to get a list of my open tickets.
Running phab app:scaffold https://config.factorial.io/scaffold/d8/d8.yml
fails before it can complete.
...
> DrupalProject\composer\ScriptHandler::createRequiredFiles
Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "Twig_Test" from the global namespace.
Did you forget a "use" statement? in phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Extension/Core.php:203
Stack trace:
#0 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/ExtensionSet.php(451): Twig_Extension_Core->getTests()
#1 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/ExtensionSet.php(431): Twig_ExtensionSet->initExtension(Object(Twig_Extension_Core))
#2 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/ExtensionSet.php(400): Twig_ExtensionSet->initExtensions()
#3 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Environment.php(941): Twig_ExtensionSet->getUnaryOperators()
#4 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Lexer.php(356): Twig_Environment->getUnaryOperators()
#5 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Lexer.php(65): Twig_Lexer->getOperatorRegex()
#6 phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Environment.php( in phar:///usr/local/bin/phab/vendor/twig/twig/lib/Twig/Extension/Core.php on line 203
(Please see file attached for detailed log).
When some interaction is required while running composer, phabalicious quits by giving error like the following.
[Phabalicious\Exception\FailedShellCommandException]
`cd /var/www && composer install` failed!
Gathering patches for root package.
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
The above error was resolved by running composer install
directly in console and then carrying on with phab -cmbb reset
A config similar to this will not work when running for example the reset
-task
scripts:
test:
- echo "Success"
hosts:
test:
type: dev
rootFolder: /some-root-folder
needs:
- drush
- scripts
reset:
- execute(script, test)
currently tmp files are hard-coded, that might result in errors, when two phab-processes are running and one is deleting the file the other needs.
When using the sshTunnel property the phab sshCommand doesn't give back the proper ssh Command.
this might happen, when you connect the first time with a host. There's a workaround to set disableKnownHosts to true, but is not an ideal solution.
For debugging purposes it would be great to enable/disable the modules listed in modules_(enabled|disabled).txt
one by one.
When I start a docker instance I get this error at the end of the start process.
Docker instances are working normally.
11:14:08 > phab docker run -cmbb
[Warning] Found deprecated key in
mbb
,needs
:drush7
,drush8
anddrush9
are deprecated, please replace with
drush
and setdrupalVersion
anddrushVersion
accordingly.Starting bi033-respimat-global_mysql_1 ... done
Starting bi033-respimat-global_solr_1 ...
Starting bi033-respimat-global_solr_1 ... doneStarting bi033-respimat-global_web_1 ... done
[OK] Task
reload_haproxy
executed successfully!// Services up and running!
[OK] Task
waitForServices
executed successfully!// Handled /root/.ssh/authorized_keys successfully!
// Handled /root/.ssh/id_rsa successfully!
// Handled /root/.ssh/id_rsa.pub successfully!
// Handled /root/.ssh/known_hosts successfully!
cp: /Users/kris/Documents/multibasebox/projects/BI033-respimat-global/./.netrc: No such file or directory
In CommandResult.php line 51:
cd /Users/kris/Documents/multibasebox/projects/BI033-respimat-global && cp -r "/Users/kris/Documents/multibasebox/projects/BI033-respimat-global/./.netrc" "/tmp/phab.tmp..netr c"
failed!docker [-c|--config CONFIG] [--blueprint [BLUEPRINT]] [-f|--fabfile [FABFILE]] [--offline [OFFLINE]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--] ...
Currently only dockerHosts
can have environment variables. It would be neat to extend that feature to hosts
The put:file command should give feedback to which path the file has been uploaded to.
phab --config=xxx drush sql-cli
does not work currently, as the user does not get an interactive shell.
when trying to run drush status on config mbb, it is throwing error in fr012.
phab drush -c mbb status
Could not validate config `mbb`
Missing key rootFolder in dockerHost: `default`: The rootFolder to start with
I used to be able to run drush commands through fabalicious from /web/modules/dev/custom_module, but now it throws an error with Phabalicious:
machine:dir user$ phab --config=mbb drush cr
In ConfigurationService.php line 102:
Could not find any fabfile at '/Users/user/projects/mbb/projects/drupal8/web/modules/dev/custom_module'
drush [-c|--config CONFIG] [--blueprint [BLUEPRINT]] [-f|--fabfile [FABFILE]] [--offline [OFFLINE]] [--] <drush>...
When using the buildin update function the update is successfull but I get am error message at the end:
17:49:05 > phab self-update --allow-unstable=1
Version 3.0.0-beta.3 of phabalicious is available. Run
phab self-update --allow-unstable=1
to update your local
installation.Visit https://github.com/factorial-io/phabalicious/releases for more info.
Current version is 3.0.0-beta.2, looking for a new version ...
[OK] Updated phabalicious successfully to 3.0.0-beta.3
PHP Warning: Uncaught ErrorException: Warning: require(phar:///usr/local/bin/phab/vendor/composer/../symfony/console/Event/ConsoleTerminateEvent.php): failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phab" (actual filesize mismatch on file "vendor/symfony/console/Event/ConsoleTerminateEvent.php") in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php:151
Stack trace:
#0 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(933): spl_autoload_call('Symfony\Compone...')
#1 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(262): Symfony\Component\Console\Application->doRunCommand(Object(Phabalicious\Command\SelfUpdateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 phar:///usr/local/bin/phab/vendor/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutp in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php on line 151
PHP Fatal error: Symfony\Component\Debug\DebugClassLoader::loadClass(): Failed opening required 'phar:///usr/local/bin/phab/vendor/composer/../symfony/console/Event/ConsoleTerminateEvent.php' (include_path='.:') in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php on line 151
PHP Fatal error: require(): Failed opening required 'phar:///usr/local/bin/phab/vendor/composer/../symfony/debug/Exception/FatalErrorException.php' (include_path='.:') in phar:///usr/local/bin/phab/vendor/symfony/debug/DebugClassLoader.php on line 151
Steps to reproduce:
phab app:scaffold https://config.factorial.io/scaffold/d8/d8.yml
Please provide the name of the new project: esd9
Please provide the short name of the new project (1-5 letters): es
usage: mkdir [-pv] [-m mode] directory ...
In CommandResult.php line 51:
`cd /Users/shibindas/work/multibasebox/projects && mkdir -p` failed!
app:scaffold [-f|--fabfile [FABFILE]] [--offline [OFFLINE]] [--name [NAME]] [-s|--short-name [SHORT-NAME]] [--output [OUTPUT]] [--override [OVERRIDE]] [--] <scaffold-url>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.