Fix new snip creation with content reference
This commit is contained in:
parent
caa6d4da17
commit
3225ec5fe0
@ -14,7 +14,7 @@ set('repository', 'git@git.loken.nl:ardent/Snips.git');
|
|||||||
set('git_tty', true);
|
set('git_tty', true);
|
||||||
|
|
||||||
// Shared files/dirs between deploys
|
// Shared files/dirs between deploys
|
||||||
set('shared_dirs', ['var/log', 'var/sessions', 'var/snips']);
|
set('shared_dirs', ['var/log', 'var/sessions']);
|
||||||
set('shared_files', ['.env.local']);
|
set('shared_files', ['.env.local']);
|
||||||
//set('writable_dirs', ['var']);
|
//set('writable_dirs', ['var']);
|
||||||
set('migrations_config', '');
|
set('migrations_config', '');
|
||||||
@ -24,7 +24,7 @@ set('allow_anonymous_stats', false);
|
|||||||
host('snips.loken.nl')
|
host('snips.loken.nl')
|
||||||
->setRemoteUser('www-data')
|
->setRemoteUser('www-data')
|
||||||
->set('branch', function () {
|
->set('branch', function () {
|
||||||
return input()->getOption('branch') ?: 'main';
|
return input()->getOption('branch') ?: 'master';
|
||||||
})
|
})
|
||||||
->set('deploy_path', '~/snips.loken.nl');
|
->set('deploy_path', '~/snips.loken.nl');
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ readonly class SnipContentService
|
|||||||
$this->em->persist($content);
|
$this->em->persist($content);
|
||||||
$this->em->flush();
|
$this->em->flush();
|
||||||
|
|
||||||
$this->snip->setActiveVersion($content->getId());
|
$this->snip->setActiveVersion($content);
|
||||||
$this->em->persist($this->snip);
|
$this->em->persist($this->snip);
|
||||||
$this->em->flush();
|
$this->em->flush();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user