Skip to content

Commit

Permalink
Fix init command
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed May 17, 2019
1 parent 2eaf862 commit be83e49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ matrix:
- php: 5.5
env:
- COMPOSER_FLAGS="--prefer-dist --no-interaction" # --prefer-lowest not possible in sulu 1.3
- ENABLE_SWAP=true
- php: 7.3
env:
- COMPOSER_FLAGS="--prefer-dist --no-interaction"
Expand All @@ -23,6 +24,14 @@ matrix:

before_install:
- phpenv config-add Tests/travis.php.ini
- | # enable swap
if [[ $ENABLE_SWAP == 'true' ]]; then
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo sysctl vm.swappiness=10
fi
- composer self-update

install:
Expand Down
2 changes: 1 addition & 1 deletion Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
/** @var Webspace $webspace */
foreach ($webspaceManager->getWebspaceCollection() as $webspace) {
$this->initWebspace($webspace, $output);
$this->entityManager->flush();
$entityManager->flush();
}
}

Expand Down

0 comments on commit be83e49

Please sign in to comment.