Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ind.ie Projects
Waystone
Commits
d3adc833
Unverified
Commit
d3adc833
authored
Sep 01, 2015
by
Aral Balkan
Browse files
Now making Docker automatically restart the container in case of crash.
parent
f6d9d4cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
__start-deployment-server
View file @
d3adc833
...
...
@@ -25,7 +25,7 @@ fi
# Start the new container.
#
ID
=
$(
docker run
-d
-v
`
pwd
`
:/home/waystone/source
-v
"
$HOME
:/root"
-p
3000
-p
8080:8080
-p
22000:22000
-p
21025:21025/udp
$TAG
coffee
source
/index.coffee
)
ID
=
$(
docker run
--restart
=
always
-d
-v
`
pwd
`
:/home/waystone/source
-v
"
$HOME
:/root"
-p
3000
-p
8080:8080
-p
22000:22000
-p
21025:21025/udp
$TAG
coffee
source
/index.coffee
)
if
[
!
$ID
]
;
then
exit
1
;
fi
echo
"
$TAG
started. Running with ID '
$ID
'"
...
...
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