Deploy dist/ only in static deployments
This commit is contained in:
parent
f3aa1f0eb2
commit
47515dc4c6
|
@ -38,9 +38,9 @@ if [ "$delete_target" = true ]; then
|
||||||
chmod g+w "$dst_dir"
|
chmod g+w "$dst_dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[[ Deploy ]] Copying files from '$tmp_dir' to '$dst_dir'."
|
echo "[[ Deploy ]] Copying files from '$tmp_dir/dist' to '$dst_dir'."
|
||||||
chmod -R g+w "$tmp_dir"
|
chmod -R g+w "$tmp_dir/dist"
|
||||||
cp -r "$tmp_dir/" "$dst_dir"
|
cp -r "$tmp_dir/dist/" "$dst_dir"
|
||||||
|
|
||||||
echo "[[ Deploy ]] Deleting '$tmp_dir'."
|
echo "[[ Deploy ]] Deleting '$tmp_dir'."
|
||||||
rm -rf "$tmp_dir"
|
rm -rf "$tmp_dir"
|
||||||
|
|
Loading…
Reference in New Issue