Skip to content

Commit bc95ad1

Browse files
aster-voidclaude
andcommitted
devenv: nix+direnv から mise に移行
shell.nix, .envrc を削除し mise.toml に置き換え。 README に開発環境セクションを追加。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 62dee9e commit bc95ad1

File tree

4 files changed

+23
-16
lines changed

4 files changed

+23
-16
lines changed

.envrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ Discord (など) で定期実行などされるBotのmonorepo。
1111

1212
詳細は ./rollcron.yaml で。
1313

14+
## 開発環境
15+
16+
[mise](https://mise.jdx.dev/) でツール管理。`mise.toml` 参照。
17+
18+
```bash
19+
mise doctor # "activated: yes" を確認
20+
mise install # ツールをインストール (初回 or mise.toml 変更時)
21+
```
22+
23+
`activated: no` の場合はシェルRCに `mise activate` を追加する。詳細は [mise docs](https://mise.jdx.dev/getting-started.html) を参照。
24+
1425
## Bot を追加する
1526

1627
### 1. `bots/` にフォルダを作る
@@ -23,7 +34,7 @@ Discord (など) で定期実行などされるBotのmonorepo。
2334

2435
```yaml
2536
my-bot:
26-
schedule: "7pm" # 下記参照
37+
schedule: "7pm" # 下記参照
2738
working_dir: bots/my-bot
2839
run: ./run.sh
2940
log: ~/run/discord-bots/my-bot/log
@@ -51,8 +62,8 @@ schedule の書き方:
5162
2通りの方法がある:
5263

5364
```
54-
1. rollcron.yaml (env_file) → run.sh → program
55-
2. rollcron.yaml → run.sh → sops → program
65+
1. rollcron.yaml (env_file → .env) → run.sh → program
66+
2. rollcron.yaml → run.sh → (sops → sops.env) → program
5667
```
5768

5869
SOPS を使う場合は [docs/sops.md](docs/sops.md) を参照。
@@ -88,7 +99,6 @@ sops を使わない場合:
8899
## コマンド
89100

90101
```bash
91-
eval "$(direnv export bash)" && COMMAND
92102
sops exec-env path/to/sops.env 'echo success!' # sops 鍵検証
93103
ssh USER@coolify.utcode.net "sudo -u deploy bash -c 'COMMAND'" # デプロイ先で操作
94104
```

mise.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[tools]
2+
bun = "latest"
3+
node = "22"
4+
biome = "latest"
5+
sops = "latest"
6+
age = "latest"
7+
8+
[env]
9+
SOPS_AGE_KEY_FILE = "{{ config_root }}/.age-key"

shell.nix

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)