From 56f4edea595dfac655705cb47fd9555e6105ffae Mon Sep 17 00:00:00 2001 From: Tang Rufus Date: Thu, 4 Apr 2019 15:46:17 +0100 Subject: [PATCH] Upload `.htpasswd` Because https://github.com/heroku/heroku-buildpack-static/pull/45 looks for `/app/.htpasswd` when: - `"basic_auth": true` (`static.json`), and - `BASIC_AUTH_USERNAME` and `BASIC_AUTH_PASSWORD` are not set --- lib/commands/deploy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/deploy.js b/lib/commands/deploy.js index 02a3396..c8d8b5c 100644 --- a/lib/commands/deploy.js +++ b/lib/commands/deploy.js @@ -26,7 +26,7 @@ function deployCommand(context, heroku) { archive.on('finish', upload.bind(null, heroku, context, paths)) archive.pipe(fs.createWriteStream(paths.tar)) archive.bulk([{ - src: ['static.json', `${paths.root}/**`], + src: ['static.json', '.htpasswd',`${paths.root}/**`], expand: true, dot: true, dest: false,