Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelle-S committed May 4, 2018
2 parents d81a2fe + f32d777 commit 6210b1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/RoboFileBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct()

protected function isSiteInstalled($worker, AbstractAuth $auth, $remote)
{
$currentProjectRoot = $remote['currentdir'] . '/..';
$currentProjectRoot = $this->getCurrentProjectRoot($worker, $auth, $remote);
$migrateStatus = '';
$status = $this->taskSsh($worker, $auth)
->remoteDirectory($currentProjectRoot, true)
Expand Down Expand Up @@ -98,7 +98,7 @@ protected function preRestoreBackupTask(
$opts['files'] = true;
$opts['data'] = true;
}
$currentProjectRoot = $remote['currentdir'] . '/..';
$currentProjectRoot = $remote['rootdir'];
$collection = $this->collectionBuilder();
$parent = parent::preRestoreBackupTask($worker, $auth, $remote);
if ($parent) {
Expand All @@ -117,7 +117,7 @@ protected function preRestoreBackupTask(

protected function installTask($worker, AbstractAuth $auth, $remote, $extra = [], $force = false)
{
$currentProjectRoot = $remote['currentdir'] . '/..';
$currentProjectRoot = $remote['rootdir'];;
$collection = $this->collectionBuilder();
$collection->taskSsh($worker, $auth)
->remoteDirectory($currentProjectRoot, true)
Expand All @@ -132,7 +132,7 @@ protected function installTask($worker, AbstractAuth $auth, $remote, $extra = []

protected function updateTask($server, AbstractAuth $auth, $remote, $extra = [])
{
$currentProjectRoot = $remote['currentdir'] . '/..';
$currentProjectRoot = $remote['rootdir'];
return $this->taskSsh($server, $auth)
->remoteDirectory($currentProjectRoot, true)
// Updates can take a long time. Let's set it to 15 minutes.
Expand All @@ -142,7 +142,7 @@ protected function updateTask($server, AbstractAuth $auth, $remote, $extra = [])

protected function clearCacheTask($worker, $auth, $remote)
{
$currentProjectRoot = $remote['currentdir'] . '/..';
$currentProjectRoot = $remote['rootdir'];
return $this->taskSsh($worker, $auth)
->remoteDirectory($currentProjectRoot, true)
->timeout(120)
Expand Down
3 changes: 2 additions & 1 deletion src/default.properties.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
remote:
appdir: '/home/[user]/apps/[app]'
releasesdir: '${remote.appdir}/releases'
webdir: '${remote.releasesdir}/[time]/web'
rootdir: '${remote.releasesdir}/[time]'
webdir: '${remote.rootdir}/web'
currentdir: '${remote.appdir}/current'
configdir: '${remote.appdir}/config'
filesdir: '${remote.appdir}/files'
Expand Down

0 comments on commit 6210b1a

Please sign in to comment.