mirror of
https://github.com/quentin-g-dev/afup.git
synced 2026-04-28 03:33:20 +02:00
Merge pull request #193 from afup/bugfix/composer-missing-vagrant
Deploy: composer is missing using vagrant
This commit is contained in:
@@ -114,3 +114,15 @@ end
|
||||
# action :restart
|
||||
# end
|
||||
|
||||
# Composer
|
||||
# --------
|
||||
execute "php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\""
|
||||
execute "php -r \"if (hash_file('SHA384', 'composer-setup.php') === '92102166af5abdb03f49ce52a40591073a7b859a86e8ff13338cf7db58a19f7844fbc0bb79b2773bf30791e935dbd938') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;\""
|
||||
execute "php composer-setup.php"
|
||||
execute "php -r \"unlink('composer-setup.php');\""
|
||||
execute "mv composer.phar /usr/local/bin/composer"
|
||||
execute "install composer" do
|
||||
command "cd /var/www/afup/ && composer install"
|
||||
user "www-data"
|
||||
group "www-data"
|
||||
end
|
||||
Reference in New Issue
Block a user