5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Capistrano でデプロイした際のディレクトリ構成例

Last updated at Posted at 2016-03-23
app_root
	current				-> app_root/releases/yyyymmddHHMMSS	# 現在のリリースバージョン
	releases
		yyyymmddHHMMSS	# リリースバージョン(タイムスタンプ)毎のディレクトリ
			log			-> app_root/shared/log
			tmp
				cache	-> app_root/shared/tmp/cache
				pids	-> app_root/shared/tmp/pids
			public
				assets	-> app_root/shared/public/assets
				system	-> app_root/shared/public/system
				
	shared
		bundle			# bundlerが管理するgemのインストール先
		log				# ログファイル
		public
			assets		# Asset Pipeline で生成されたjs/css
			system		# アップロードファイルなどの格納先
		tmp
			cache		# Railsのキャッシュ
			pids		# pidファイル

bundle install する際は --path オプション付けて

$ bundle install --path /path/to/app_root/shared/bundle 

のようにインストールする

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?