2020年5月21日木曜日

Yii for beanstalk(フォルダー権限の変更について)

ssh経由で接続して必要な権限を手動で設定できますが、アプリを再デプロイするたびに
実行する必要があるので、.ebextensionsに記述を行う必要がある。


フォルダー権限の変更など:


情報1:


情報2(Yiiサイトより):
// change to your current project directory e.g. /var/www/yourproject

// 1. method: change permissions so that everyone could write the directories
chmod -vR 0777 assets
chmod -vR 0777 protected/runtime

// 2. method: change owner of directories and directories content to webserver user (e.g www-data) and grant write access only to that user
chown -vR www-data assets
chown -vR www-data protected/runtime
chmod -vR 0744 assets
chmod -vR 0744 protected/runtime


情報3:

0 件のコメント:

コメントを投稿

【AI×GitOps】Docker Composeから始めるRaspberry Pi 5 Kubernetesクラスタへの自動デプロイ設計

現在構築を進めている動画管理システム開発において、いきなりKubernetes(K8s)に展開するのではなく、 Docker Composeを中間地点に挟んで段階的にK8s+Argo CD(GitOps)へ移行するアーキテクチャ設計 をまとめました。 Bionic(AIアシスタン...