Download the PHP package aklump/live-dev-porter without Composer
On this page you can find all versions of the php package aklump/live-dev-porter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aklump/live-dev-porter
More information about aklump/live-dev-porter
Files in aklump/live-dev-porter
Package live-dev-porter
Short Description Simplifies the management and transfer of assets between website environments.
License BSD-3-Clause
Informations about the package live-dev-porter
Live Dev Porter
Summary
Simplifies the management and transfer of assets between website environments.
Visit https://aklump.github.io/live_dev_porter for full documentation.
Install with Composer
- Require this package:
Quick Start
- Ensure execute permissions:
chmod u+x ./vendor/bin/ldp
- Initialize your project using
./vendor/bin/ldp init
- (To migrate from Loft Deploy jump below...)
- Open .live_dev_porter/config.yml and modify as needed.
- Ensure .live_dev_porter/config.local.yml is ignored by your SCM!
- Open .live_dev_porter/config.local.yml and define the correct
local
andremote
environment IDs as defined in config.yml. - Run
./vendor/bin/ldp configtest
and work through any failed tests.
Migrating from Loft Deploy?
rm .live_dev_porter/config*
./vendor/bin/ldp config-migrate .loft_deploy
- Rewrite any hooks as processors.
- Return to where you left off above.
Optional Shorthand ldp
instead of ./vendor/bin/ldp
Option A: $PATH
This option has the advantage that any other composer binary in your project will be executable as well.
- Add /path/to/project/root/vendor/bin to your
$PATH
.
_~/.bashprofile
Option B: alias
This option is singularly focused in terms of what it affects.
_~/.bashprofile
- Add an alias called ldp that points to /path/to/project/root/vendor/bin/ldp.
Both Options Continued
- Type
ldp
to test if it worked... you should see available commands - Now use
ldp
from anywhere within your project, instead of./vendor/bin/ldp
from the root. - Don't worry if you have more than one project using Live Dev Porter because this alias will work for multiple projects as long as they use the same version, and usually even if the versions differ.
Quick Start Remote
- Deploy your code to your remote server.
- On the remote server type
./vendor/bin/ldp config -l
Installation
The installation script above will generate the following structure where .
is your repository root.
.
└── .live_dev_porter
│ ├── config.local.yml
│ └── config.yml
└── {public web root}
Configuration Files
Refer to the file(s) for documentation about configuration options.
Filename | Description | VCS |
---|---|---|
.live_dev_porter/config.yml | Configuration shared across all server environments: prod, staging, dev | yes |
.live_dev_porter/config.local.yml | Configuration overrides for a single environment; not version controlled. | no |
Usage
- To see all commands use
./vendor/bin/ldp
Contributing
If you find this project useful... please consider making a donation.
All versions of live-dev-porter with dependencies
aklump/glob Version ^0.0
aklump/loft-lib Version ^2.1
ckr/arraymerger Version ^2.0
doctrine/lexer Version ^1.2 || ^2.1
ext-json Version *
jasny/dotkey Version ^1.0
justinrainbow/json-schema Version ^5.2
nikic/php-parser Version ^4.15
php Version ^7.3 || ^8
symfony/yaml Version ^3.4 || ^4 || ^5 || ^6