LoginSignup
0
0

More than 1 year has passed since last update.

AWS S3 で公開されているページをローカルで表示する

Last updated at Posted at 2022-02-11

ページを公開する方法はこちら
AWS S3 でページを公開する

バケット名を調べる方法

aws s3 ls

公開されているページをダウンロードする方法

aws s3 cp s3://test-s3 build --recursive

サーバーの起動にはいくつか方法があります。

serve を使う方法

$ serve build

   ┌─────────────────────────────────────────────────┐
   │                                                 │
   │   Serving!                                      │
   │                                                 │
   │   - Local:            http://localhost:3000     │
   │   - On Your Network:  http://192.168.1.6:3000   │
   │                                                 │
   │   Copied local address to clipboard!            │
   │                                                 │
   └─────────────────────────────────────────────────┘

http-server を使う方法

$ http-server build
Starting up http-server, serving build
Available on:
  http://127.0.0.1:8080
  http://192.168.1.6:8080
  http://10.64.227.1:8080
Hit CTRL-C to stop the server
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0