WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit d3d55f4

Browse files
authored
Merge pull request #114 from alexander-schranz/hotfix/init-command
Fix init command
2 parents 2eaf862 + be83e49 commit d3d55f4

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ matrix:
1515
- php: 5.5
1616
env:
1717
- COMPOSER_FLAGS="--prefer-dist --no-interaction" # --prefer-lowest not possible in sulu 1.3
18+
- ENABLE_SWAP=true
1819
- php: 7.3
1920
env:
2021
- COMPOSER_FLAGS="--prefer-dist --no-interaction"
@@ -23,6 +24,14 @@ matrix:
2324

2425
before_install:
2526
- phpenv config-add Tests/travis.php.ini
27+
- | # enable swap
28+
if [[ $ENABLE_SWAP == 'true' ]]; then
29+
sudo fallocate -l 4G /swapfile
30+
sudo chmod 600 /swapfile
31+
sudo mkswap /swapfile
32+
sudo swapon /swapfile
33+
sudo sysctl vm.swappiness=10
34+
fi
2635
- composer self-update
2736

2837
install:

Command/InitCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
6161
/** @var Webspace $webspace */
6262
foreach ($webspaceManager->getWebspaceCollection() as $webspace) {
6363
$this->initWebspace($webspace, $output);
64-
$this->entityManager->flush();
64+
$entityManager->flush();
6565
}
6666
}
6767

0 commit comments

Comments
 (0)