<?php use Rocketeer\Facades\Rocketeer; Rocketeer::task('uploads_pull', function ($task) { }, 'Pull uploads folder from remote server'); Rocketeer::task('uploads_push', function ($task) { }, 'Push uploads folder to remote server');
<?php use Rocketeer\Facades\Rocketeer; Rocketeer::task('db_pull', function ($task) { }, 'Pull database from remote server'); Rocketeer::task('db_push', function ($task) { }, 'Push database to remote server');
<?php use Rocketeer\Facades\Rocketeer; Rocketeer::task('assets', function ($task) { $theme_name = 'sage'; $theme_path = $task->releasesManager->getCurrentReleasePath('web/app/themes/' . $theme_name); $theme_exists = $task->fileExists($theme_path); $stage = $task->connections->getStage(); if ($theme_exists) { $task->command->info('Theme exists.'); if ($stage == 'production') { $gulp = 'gulp --production'; } else { $gulp = "gulp"; } return $task->runForCurrentRelease(['cd ' . $theme_path, 'composer install', 'npm install', 'bower install', $gulp]); } else { $task->command->error('Theme does not exist.'); } }, 'Compile assets on the server');