Created
October 14, 2014 02:27
-
-
Save kooyeed/fa1a48a8961dd366d723 to your computer and use it in GitHub Desktop.
Rails工程目录结构说明
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
檔案/目錄 用途 | |
Gemfile 設定Rails應用程式會使用哪些Gems套件 | |
README 專案說明:你可以用來告訴其他人你的應用程式是做什麼用的,如何使用等等。 | |
Rakefile 用來載入可以被命令列執行的一些Rake任務 | |
app/ 放Controllers、Models和Views檔案,接下來的內容主要都在這個目錄。 | |
config/ 應用程式設定檔、路由規則、資料庫設定等等 | |
config.ru 用來啟動應用程式的Rack伺服器設定檔 | |
db/ 資料庫的結構綱要 | |
doc/ 用來放你的文件 | |
lib/ 放一些自定的Module和類別檔案 | |
log/ 應用程式的Log記錄檔 | |
public/ 唯一可以在網路上看到的目錄,這是你的圖檔、JavaScript、CSS和其他靜態檔案擺放的地方 | |
script/ 放rails這個指令和放其他的script指令 | |
test/ 單元測試、fixtures及整合測試等程式 | |
tmp/ 暫時性的檔案 | |
vendor/ 用來放第三方程式碼外掛的目錄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment