corrected after @progrium comments

This commit is contained in:
alexanderbeletsky
2013-07-20 09:59:22 +03:00
parent eef39c30d3
commit ad6459a70c

10
dokku
View File

@@ -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