Skip to content

Commit

Permalink
Merge pull request #39 from EmakinaFR/feature/synchronization
Browse files Browse the repository at this point in the history
Synchronization improvements
  • Loading branch information
ajardin authored Apr 26, 2019
2 parents 1b1cdc6 + 40296d9 commit 3c546d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ jobs:
command: 'cd ~/magento && make build start ps'
- run:
name: Try to access the setup page of Magento 2
command: 'curl --insecure --location --resolve "www.magento.localhost:443:127.0.0.1" https://www.magento.localhost/'
command: |
while [[ ! $(mutagen list) =~ 'Status: Watching for changes' ]]; do
echo 'Waiting for synchronization to complete...'
sleep 10
done
curl --insecure --location --resolve "www.magento.localhost:443:127.0.0.1" https://www.magento.localhost/setup/
workflows:
version: 2
build:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ start: ## Start the environment
--sync-mode="two-way-resolved" \
--ignore-vcs --ignore=".idea" \
"${PROJECT_LOCATION}" "docker://${COMPOSE_PROJECT_NAME}_synchro/var/www/html/"
while [[ ! $$(mutagen list) =~ 'Status: Watching for changes' ]]; do \
echo 'Waiting for synchronization to complete...'; \
sleep 10; \
done

stats: ## Print real-time statistics about containers ressources usage
docker stats $(docker ps --format={{.Names}})
Expand Down

0 comments on commit 3c546d3

Please sign in to comment.