Skip to content
Kazane Shimizu edited this page Dec 6, 2024 · 33 revisions

Welcome to the Collections wiki!

起動方法

開発者として使う手順

clone project
cd collections/

mv .env.sample .env
vi .env # edit database settings

yarn migrate:latest
yarn seed:dev

vim /etc/hosts

サブドメインログインをするため以下を追加
ref: https://github.com/nextauthjs/next-auth/discussions/4089#discussioncomment-2290660

127.0.0.1       test.com
127.0.0.1       app.test.com
127.0.0.1       us.test.com
127.0.0.1       ja.test.com

yarn dev

Docker で起動する方法

※ localhost でつなぎたいけど Auth.js が動かない

Docker を起動
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up

HTTPS でログイン
https://app.test.com/admin/auth/login

Docker を落とす
docker-compose -f docker-compose.yml -f docker-compose.dev.yml down

コミットルール

構成

  • collections
    • CMS
  • /docs
    • HP、ドキュメント
  • /templates
    • CMS拡張のテンプレート

npm

npmへのアップロード方法

  1. npm run compile /dist が更新されていることを確認
  2. cd dist/
  3. RELEASE=true npm publish

ベンチマーク