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);
|
||||
|
||||
// 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('writable_dirs', ['var']);
|
||||
set('migrations_config', '');
|
||||
@ -24,7 +24,7 @@ set('allow_anonymous_stats', false);
|
||||
host('snips.loken.nl')
|
||||
->setRemoteUser('www-data')
|
||||
->set('branch', function () {
|
||||
return input()->getOption('branch') ?: 'main';
|
||||
return input()->getOption('branch') ?: 'master';
|
||||
})
|
||||
->set('deploy_path', '~/snips.loken.nl');
|
||||
|
||||
|
@ -28,7 +28,7 @@ readonly class SnipContentService
|
||||
$this->em->persist($content);
|
||||
$this->em->flush();
|
||||
|
||||
$this->snip->setActiveVersion($content->getId());
|
||||
$this->snip->setActiveVersion($content);
|
||||
$this->em->persist($this->snip);
|
||||
$this->em->flush();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user