Skip to content

Commit

Permalink
default disable fxp (#23)
Browse files Browse the repository at this point in the history
* Update luya.php

* Update README.md

* Update CHANGELOG.md

* Update UPGRADE.md
  • Loading branch information
nadar authored Mar 15, 2022
1 parent 0b00475 commit 49ca787
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
In order to read more about upgrading and BC breaks have a look at the [UPGRADE Document](UPGRADE.md).

## 2.2.0 (15. March 2022)

+ [#23](https://github.com/luyadev/luya-deployer/pull/23) FXP installation is now by default **off** instead of **on**. This is a small BC break. In order to restore original behavior use `->set('installFxpPlugin', true)`

## 2.1.0 (7. October 2021)

+ [#17](https://github.com/luyadev/luya-deployer/issues/17) Added new `unglue` tasks which is downloading the unglue binary. Usage example `after('luya:commands', 'unglue');`
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Available Options
|Key|Constant|Default|Description
|---|--------|-------|-----
|`ignorePlatformReqs`|`COMPOSER_IGNORE_PLATFORM_REQS`|false|Whether composer install should ignore platform requirements or not.
|`installFxpPlugin`|`COMPOSER_INSTALL_FXP`|true|Whether composer global fxp plugin should be installed or not.
|`installFxpPlugin`|`COMPOSER_INSTALL_FXP`|false|Whether composer global fxp plugin should be installed or not.
|`adminCoreCommands`|`LUYA_ADMIN_CORE_COMMANDS`|true|Whether the LUYA core commands like migrate, import should be run after deployment.

> In order to configure a branch to deploy use `set('branch', 'myCheckoutBranch');`
Expand All @@ -97,4 +97,4 @@ Read the [PHP Deployer Docs](https://deployer.org/docs/hosts.html) for more info
1. Generate an SSH Key `ssh-keygen -t rsa -b 2048 -C "luyadeployer"`
2. When prompting for `Enter passphrase (empty for no passphrase):` skip this step (at least when setting up an continuous deployment f.e.).
3. Copy the content of `~/.ssh/id_rsa.pub` which is the public key.
4. Add the public key to `~/.ssh/authorized_keys` on the Server or use `ssh-copy-id`. Also Plesk f.e. has visual tools to do so [Plesk SSH Keys Extension](https://www.plesk.com/extensions/ssh-keys/)
4. Add the public key to `~/.ssh/authorized_keys` on the Server or use `ssh-copy-id`. Also Plesk f.e. has visual tools to do so [Plesk SSH Keys Extension](https://www.plesk.com/extensions/ssh-keys/)
6 changes: 5 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This document will help you upgrading from a LUYA Deployer version into another. For more detailed informations about the breaking changes **click the issue detail link**, there you can examples of how to change your code.

## from 2.x to 2.2

+ [#23](https://github.com/luyadev/luya-deployer/pull/23) FXP installation is now by default **off** instead of **on**. This is a small BC break. In order to restore original behavior use `->set('installFxpPlugin', true)`.

## from 1.x to 2.0

+ The `password()` option has been removed by latest deployer version, use ssh keys instead.
Expand All @@ -21,4 +25,4 @@ host('SSHHOST.COM')
->set('deploy_path', '~/httpdocs');

set('repository', 'https://USER:[email protected]/VENDOR/REPO.git');
```
```
2 changes: 1 addition & 1 deletion luya.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

task('luya:composerglobal', function() {

if (get(COMPOSER_INSTALL_FXP, true)) {
if (get(COMPOSER_INSTALL_FXP, false)) {
run('cd {{release_path}} && {{bin/composer}} global require "fxp/composer-asset-plugin:^1.4.2" --verbose --prefer-dist --optimize-autoloader --no-progress --no-interaction');
}
});
Expand Down

0 comments on commit 49ca787

Please sign in to comment.