Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken start up when site was already imported #9

Merged
merged 1 commit into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion deployment/local-dev/neos/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ set -ex
composer install

./flow doctrine:migrate
./flow site:import --package-key $SITE_IMPORT_PACKAGE_KEY

# only run site import when nothing was imported before
importedSites=`./flow site:list`
if [ "$importedSites" = "No sites available" ]; then
./flow site:import --package-key $SITE_IMPORT_PACKAGE_KEY
fi

./flow user:create --roles Administrator $ADMIN_USERNAME $ADMIN_PASSWORD LocalDev Admin || true
./flow resource:publish

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:
- ./app/DistributionPackages/:/app/DistributionPackages/:ro,cached
# Content is writable to enable content dumps from inside the container
- ./app/DistributionPackages/Sandstorm.ProjectX/Resources/Private/Content:/app/DistributionPackages/Sandstorm.ProjectX/Resources/Private/Content/:cached
- ./app/DistributionPackages/Sandstorm.ProjectX/Migrations/:/app/DistributionPackages/Sandstorm.ProjectX/Migrations/:cached
- ./app/Configuration/Development/Docker/:/app/Configuration/Development/Docker/:ro,cached
# Explcitly set up Composer cache for faster fetching of packages
- ./tmp/composer_cache:/composer_cache:cached
Expand Down