Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StaticPage for nodeApp(Heroku)

Herokuに静的ページをベーシック認証付きでアップするときのテンプレ&メモ

USAGE

# distに静的ページをいれてから・・・

# herokuにログイン
$ heroku login

# git
$ git init && git add . && git commit -m "comment"

# heroku create app
$ heroku create <app-name>

# push
$ git push heroku master

Basic Auth

auth.js にIDとPASSを記述

const admins = {
  'BASIC_AUTH_ID': { password: 'BASIC_AUTH_PASS' },
};

公開するルートディレクトリを server.js に記述

app.use(express.static('dir_name'));

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages