Commit 02ace48a authored by jxltom's avatar jxltom

Update url

parent 6b530c9a
...@@ -39,7 +39,7 @@ export BUILD_DIR CACHE_DIR ENV_DIR ...@@ -39,7 +39,7 @@ export BUILD_DIR CACHE_DIR ENV_DIR
# The user can provide BUILDPACK_VENDOR_URL to specify a custom target. # The user can provide BUILDPACK_VENDOR_URL to specify a custom target.
# Note: this is designed for non-Heroku use, as it does not use the user-provided # Note: this is designed for non-Heroku use, as it does not use the user-provided
# environment variable mechanism (the ENV_DIR). # environment variable mechanism (the ENV_DIR).
VENDOR_URL="https://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK" VENDOR_URL="https://wj-backend.oss-accelerate.aliyuncs.com/heroku/lang-python/$STACK"
if [[ -n ${BUILDPACK_VENDOR_URL:-} ]]; then if [[ -n ${BUILDPACK_VENDOR_URL:-} ]]; then
VENDOR_URL="$BUILDPACK_VENDOR_URL" VENDOR_URL="$BUILDPACK_VENDOR_URL"
fi fi
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# This script is invoked by [`bin/compile`](/). # This script is invoked by [`bin/compile`](/).
# The location of the pre-compiled cryptography binary. # The location of the pre-compiled cryptography binary.
VENDORED_GDAL="http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/gdal.tar.gz" VENDORED_GDAL="http://wj-backend.oss-accelerate.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/gdal.tar.gz"
PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH" PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH"
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
# This script is invoked by [`bin/compile`](/). # This script is invoked by [`bin/compile`](/).
# The location of the pre-compiled cryptography binary. # The location of the pre-compiled cryptography binary.
VENDORED_GDAL="http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/gdal.tar.gz" VENDORED_GDAL="http://wj-backend.oss-accelerate.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/gdal.tar.gz"
VENDORED_GEOS="http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/geos.tar.gz" VENDORED_GEOS="http://wj-backend.oss-accelerate.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/geos.tar.gz"
VENDORED_PROJ="http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/proj.tar.gz" VENDORED_PROJ="http://wj-backend.oss-accelerate.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/proj.tar.gz"
PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH" PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH"
......
...@@ -15,7 +15,7 @@ if [[ "$STACK" != "cedar-14" ]]; then ...@@ -15,7 +15,7 @@ if [[ "$STACK" != "cedar-14" ]]; then
fi fi
# The location of the pre-compiled libmemcached binary. # The location of the pre-compiled libmemcached binary.
VENDORED_MEMCACHED="http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/libmemcache.tar.gz" VENDORED_MEMCACHED="http://wj-backend.oss-accelerate.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/libmemcache.tar.gz"
# Syntax sugar. # Syntax sugar.
# shellcheck source=bin/utils # shellcheck source=bin/utils
......
...@@ -83,13 +83,13 @@ if [ ! "$SKIP_INSTALL" ]; then ...@@ -83,13 +83,13 @@ if [ ! "$SKIP_INSTALL" ]; then
mcount "version.python.$PYTHON_VERSION" mcount "version.python.$PYTHON_VERSION"
echo "http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz is being downloaded..." echo "http://wj-backend.oss-accelerate.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz is being downloaded..."
if ! curl "http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz" -s | tar zxv -C .heroku/python &> /dev/null; then if ! curl "http://wj-backend.oss-accelerate.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz" -s | tar zxv -C .heroku/python &> /dev/null; then
puts-warn "Requested runtime ($PYTHON_VERSION) is not available for this stack ($STACK)." puts-warn "Requested runtime ($PYTHON_VERSION) is not available for this stack ($STACK)."
puts-warn "Aborting. More info: https://devcenter.heroku.com/articles/python-support" puts-warn "Aborting. More info: https://devcenter.heroku.com/articles/python-support"
exit 1 exit 1
fi fi
echo "http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz is downloaded successfully" echo "http://wj-backend.oss-accelerate.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz is downloaded successfully"
# Record for future reference. # Record for future reference.
echo "$PYTHON_VERSION" > .heroku/python-version echo "$PYTHON_VERSION" > .heroku/python-version
......
...@@ -4,7 +4,7 @@ shopt -s nullglob ...@@ -4,7 +4,7 @@ shopt -s nullglob
# The standard library. # The standard library.
if [[ ! -f /tmp/stdlib.sh ]]; then if [[ ! -f /tmp/stdlib.sh ]]; then
curl --retry 3 -s http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-common/buildpack-stdlib/v8/stdlib.sh > /tmp/stdlib.sh curl --retry 3 -s http://wj-backend.oss-accelerate.aliyuncs.com/heroku/lang-common/buildpack-stdlib/v8/stdlib.sh > /tmp/stdlib.sh
fi fi
# shellcheck source=/dev/null # shellcheck source=/dev/null
source /tmp/stdlib.sh source /tmp/stdlib.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment