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

webroot内のシンボリックリンクが絶対パスになっているのを相対パスにしたい #2926

Closed
kaburk opened this issue Dec 7, 2023 · 4 comments
Assignees
Labels
Reviewed レビュー済

Comments

@kaburk
Copy link
Collaborator

kaburk commented Dec 7, 2023

概要

プラグインやテーマをインストールすると、webrootフォルダ内にプラグインやテーマフォルダ内のwebrootへのシンボリックリンクが作成されるのですが、これが絶対パスになっているようで、ローカルで構築→サーバへファイルをアップという時に、パス位置が変わりCSSなどにアクセスできずスタイル全滅となったりします。

サーバアップ時にパス変わると思うのでほぼシンボリックリンクは全部作成し直しする必要があるので、相対パスにしたいです。

それか絶対パスにする仕様が変更できない場合は、自動で一括で張り替えてくれる機能(管理画面の機能、シェルスクリプトなどなど)があれば良いかと思います。(一定の名前の変換ルールもあるようですので、、、)

現状の例(/Volumes/Projects/basercms5にbaserCMS5を設置)

スクリーンショット 2023-12-07 17 18 38

上記の理想系

スクリーンショット 2023-12-07 17 18 50

手作業で相対パスに変えても動作している感じかと思いますのでご検討ください。

baserCMS version : 5.0.7

@ryuring ryuring added the Reviewed レビュー済 label Dec 7, 2023
@kaburk
Copy link
Collaborator Author

kaburk commented Dec 7, 2023

@ryuring

docker exec -it bc-php /bin/bash
bin/cake plugin assets symlink

なるほど、cakeのコマンドあるんですね!

https://baserproject.github.io/5/operation/move_to_another
にそってサーバにアップしていたので気が付きませんでした。
そっちの方にも記載が必要そうですね。
ただ、サーバによってSSH使えない時に困りそうなんで、やはりGUIが欲しいかもですねー。

@ryuring
Copy link
Collaborator

ryuring commented Dec 7, 2023

@kaburk こちらに記載お願いしてもいいですか?
https://baserproject.github.io/5/operation/move_to_another

@kaburk
Copy link
Collaborator Author

kaburk commented Dec 11, 2023

baserproject/baserproject.github.io#116
マージされたみたいでしたのでクローズします!

@kaburk kaburk closed this as completed Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed レビュー済
Projects
None yet
Development

No branches or pull requests

2 participants