Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Upload .htpasswd
Browse files Browse the repository at this point in the history
Because heroku/heroku-buildpack-static#45 looks for `/app/.htpasswd` when:
- `"basic_auth": true` (`static.json`), and
- `BASIC_AUTH_USERNAME` and `BASIC_AUTH_PASSWORD` are not set
  • Loading branch information
tangrufus committed Apr 4, 2019
1 parent 8df70f9 commit 56f4ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 56f4ede

Please sign in to comment.