mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
corrected after @progrium comments
This commit is contained in:
10
dokku
10
dokku
@@ -7,9 +7,9 @@ case "$1" in
|
||||
echo "-----> Building $APP ..."
|
||||
cat | dokku build $IMAGE
|
||||
echo "-----> Build complete!"
|
||||
echo "-----> Setting up ..."
|
||||
dokku setup $APP $IMAGE
|
||||
echo "-----> Setup complete!"
|
||||
echo "-----> Releasing $APP ..."
|
||||
dokku release $APP $IMAGE
|
||||
echo "-----> Release complete!"
|
||||
echo "-----> Deploying $APP ..."
|
||||
dokku deploy $APP $IMAGE
|
||||
echo "=====> Application deployed:"
|
||||
@@ -28,10 +28,10 @@ case "$1" in
|
||||
docker commit $id $IMAGE > /dev/null
|
||||
;;
|
||||
|
||||
setup)
|
||||
release)
|
||||
APP="$2"; IMAGE="$3"
|
||||
if [[ -f "$HOME/$APP/ENV" ]]; then
|
||||
id=$(cat "$HOME/$APP/ENV" | docker run -i -a stdin $IMAGE /bin/bash -c "cat > /app/.app-env")
|
||||
id=$(cat "$HOME/$APP/ENV" | docker run -i -a stdin $IMAGE /bin/bash -c "mkdir -p /app/.profile.d && cat > /app/.profile.d/app-env.sh")
|
||||
test $(docker wait $id) -eq 0
|
||||
docker commit $id $IMAGE > /dev/null
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user