Download the PHP package lmatte7/platform-bundle without Composer
On this page you can find all versions of the php package lmatte7/platform-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lmatte7/platform-bundle
More information about lmatte7/platform-bundle
Files in lmatte7/platform-bundle
Package platform-bundle
Short Description Symfony commands that can be used with the Platform.sh hosting service
License MIT
Homepage https://github.com/lmatte7/PlatformBundle
Informations about the package platform-bundle
PlatformBundle
A Symfony bundle to add commands that can be used with Platform.sh
Note: This bundle is still under development towards a version 1. It is highly reccomended to have a version control system in place prior to running any commands
Installation
Add the following to your composer.json file.
Add the following to your AppKernel.php
Then run composer update
Available Commands
There are three commands available:
rsync: Sync files from or to your platform.sh environments. Will only sync files in /web
sync_db: Sync databases from or to your platform.sh environments
init: Set up the necessary files to create a platform.sh project
Rsync
Example:
To sync the local web directory with your current platform.sh environment
bin/console platform:rsync -d from
To sync the platform.sh master environment web directory with your current web directory
bin/console platform:rsync -d to -s master
To sync only the local /web/upload directory with the master platform.sh env /web/upload
bin/console platform:rsync -d to -f upload -s master
Sync DB
Example:
To sync the local database with your current platform.sh environment database
bin/console platform:sync_db -d from
To sync the platform.sh master environment database with your local database
bin/console platform:rsync -d from -s master
Note: Must have mysql and mysqldump available as command line options
Platform Init
Creates default config files needed to create a platform.sh project. Uses the suggested files from the platform.sh Symfony example project. Uses MySql for the database. It is highly recommended these are reviewed before pushing to a live server.