Allows you to specify custom environment variables for the build stage of your app. Unlike dokku-user-env-compile, these are not application-specific.
cd /var/lib/dokku/plugins
git clone https://github.com/cameron-martin/dokku-build-env.git build-env
Add any environment variables to /home/dokku/BUILD_ENV
, like so
export VAR_NAME=value
Amazon S3 kept timing out when pushing, resulting in the following error
! Command: 'set -o pipefail; curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/ruby-2.0.0.tgz -s -o - | tar zxf -' failed unexpectedly:
!
! gzip: stdin: invalid compressed data--format violated
! tar: Unexpected EOF in archive
! tar: Unexpected EOF in archive
! tar: Error is not recoverable: exiting now
So I added the following to /home/dokku/BUILD_ENV
export CURL_TIMEOUT=60
export CURL_CONNECT_TIMEOUT=30