Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
b0a6f2d6
Commit
b0a6f2d6
authored
Jul 15, 2017
by
Arian Acosta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stopping if errors happen
parent
8e20ec76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sync.sh
sync.sh
+5
-5
No files found.
sync.sh
View file @
b0a6f2d6
...
...
@@ -35,15 +35,15 @@ fi
if
[
"
$1
"
==
"up"
]
;
then
print_style
"Initializing Docker Sync
\n
"
"info"
;
print_style
"(May take a long time (15min+) on the 'Looking for changes' step the first time)
\n
"
"warning"
;
docker-sync start
;
print_style
"Initializing Docker Compose
\n
"
"info"
;
shift
;
# removing first argument
docker-sync start
&&
print_style
"Initializing Docker Compose
\n
"
"info"
&&
shift
&&
# removing first argument
docker-compose
-f
docker-compose.yml
-f
docker-compose.sync.yml up
-d
${
@
}
;
elif
[
"
$1
"
==
"down"
]
;
then
print_style
"Stopping Docker Compose
\n
"
"info"
;
docker-compose down
;
print_style
"Stopping Docker Sync
\n
"
"info"
;
docker-compose down
&&
print_style
"Stopping Docker Sync
\n
"
"info"
&&
docker-sync stop
;
elif
[
"
$1
"
==
"install"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment