Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

サブディレクトリ運用時のファイル保存先 #127

Open
Songmu opened this issue Oct 29, 2023 · 0 comments
Open

サブディレクトリ運用時のファイル保存先 #127

Songmu opened this issue Oct 29, 2023 · 0 comments

Comments

@Songmu
Copy link
Member

Songmu commented Oct 29, 2023

ブログメディアのサブディレクトリ運用をしている時、blogsyncは現状、 url.Path に対応する部分にファイルを保存しているため (

return filepath.Join(b.localRoot(), e.URL.Path+entryExt)
) 、例えば、 https://blog.example.com/subdir/entry/hoge というエントリーは $local_root/subdir/entry/hoge に保存される。

これはあまり嬉しくないのではないか。 $local_root/entry/hoge に保存されて欲しい。その様に変更した場合に $local_root/subdir に保存したい場合は、 local_rootの設定に subdirを含めれば良い。

ただこれを変えてしまうと破壊的変更になるし、多分MackerelのDocumentがこの挙動に依存したワークフローを組んでいる気がする。

https://github.com/mackerelio/documents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant