PHP code example of luyadev / luya-module-exporter
1. Go to this page and download the library: Download luyadev/luya-module-exporter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
luyadev / luya-module-exporter example snippets
task('deploy:importProdDb', function() {
cd('{{release_path}}');
run('./vendor/bin/luya exporter/database/remote-replace-local "mysql:host=localhost;dbname=prod_database" "USER" "PASSWORD" --interactive=0');
})->onlyOn('prep');
after('deploy:luya', 'deploy:importProdDb');