LoginSignup
2
2

More than 5 years have passed since last update.

nanocでサイトをAmazon S3にデプロイするための設定

Posted at

nanocで生成したwebサイトははAmazon S3にもデプロイできる。

設定

config.yaml に以下の設定を追加。

deploy:
  s3:
    kind: fog
    provider:              aws
    bucket:                www.example.com
    aws_access_key_id:     アクセスキーID
    aws_secret_access_key: シークレットアクセスキーID
    region:                ap-northeast-1
  • bucketで指定するバケット名はwebサイトのバーチャルホスト名と揃える。バケットが存在しなければ新たに作成される。
  • regionは、東京の場合は ap-northeast-1

デプロイ

以下を実行する。ファイルが多いと時間がかかる。

nanoc deploy -t s3
2
2
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
2
2