Commit 5ca720c9 authored by Liu Junxiao's avatar Liu Junxiao

Update aliyun oss from shenzhen to hongkong

parent 5bd9747f
......@@ -10,7 +10,7 @@
# This script is invoked by [`bin/compile`](/).
# The location of the pre-compiled cryptography binary.
VENDORED_GDAL="http://wj-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/gdal.tar.gz"
VENDORED_GDAL="http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/gdal.tar.gz"
PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH"
......
......@@ -10,9 +10,9 @@
# This script is invoked by [`bin/compile`](/).
# The location of the pre-compiled cryptography binary.
VENDORED_GDAL="http://wj-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/gdal.tar.gz"
VENDORED_GEOS="http://wj-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/geos.tar.gz"
VENDORED_PROJ="http://wj-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/proj.tar.gz"
VENDORED_GDAL="http://wj-backend.oss-cn-hongkong.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_PROJ="http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/proj.tar.gz"
PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH"
......
......@@ -15,7 +15,7 @@ if [[ "$STACK" != "cedar-14" ]]; then
fi
# The location of the pre-compiled libmemcached binary.
VENDORED_MEMCACHED="http://wj-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/libmemcache.tar.gz"
VENDORED_MEMCACHED="http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/libraries/vendor/libmemcache.tar.gz"
# Syntax sugar.
# shellcheck source=bin/utils
......
......@@ -44,13 +44,13 @@ if [ ! "$SKIP_INSTALL" ]; then
mcount "version.python.$PYTHON_VERSION"
echo "http://wj-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz is being downloaded..."
if ! curl "http://wj-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz" -s | tar zxv -C .heroku/python &> /dev/null; then
echo "http://wj-backend.oss-cn-hongkong.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
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"
exit 1
fi
echo "http://wj-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz is downloaded successfully"
echo "http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-python/$STACK/runtimes/$PYTHON_VERSION.tar.gz is downloaded successfully"
# Record for future reference.
echo "$PYTHON_VERSION" > .heroku/python-version
......
......@@ -4,7 +4,7 @@ shopt -s nullglob
# The standard library.
if [[ ! -f /tmp/stdlib.sh ]]; then
curl --retry 3 -s http://wj-backend.oss-cn-shenzhen.aliyuncs.com/heroku/lang-common/buildpack-stdlib/v8/stdlib.sh > /tmp/stdlib.sh
curl --retry 3 -s http://wj-backend.oss-cn-hongkong.aliyuncs.com/heroku/lang-common/buildpack-stdlib/v8/stdlib.sh > /tmp/stdlib.sh
fi
# shellcheck source=/dev/null
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