Skip to content

Build project

hlb edited this page Jun 25, 2012 · 5 revisions

Build Project

You can export the whole project to static files with single click. It is useful when you need to send deliverables to clients, or host the prototype to any web hosting.

Build Project

It will create a folder named named "build_YYYYMMDDHHmmSS" (ex, "build_20120318120532") in your project folder.

Specify the build folder

Fire.app 1.2 can specify the build folder. You can add fireapp_build_path="foo" in config.rb, and it will build project to project_path/foo.

NOTICE: When Fire.app build a project, it will delete the folder first, then regenerate it.

DANGER: If you add fireapp_build_path="/path/to/build/folder/path" in config.rb, it will build project to /path/to/build/folder/path. If you write "/Users/foo", your home folder may be removed.

Do not copy some files to build folder

Fire.app does not copy these files to build folder by default:

*.swp
*.layout
*~
*/.DS_Store
*/.git
*/.gitignore
*.svn
*/Thumbs.db
*/.sass-cache
*/.coffeescript-cache
*/compass_app_log.txt
*/fire_app_log.txt
view_helpers.rb
Gemfile
Gemfile.lock
config.ru

If you do not want to ignore them, or want to use your own list, you can add a build_ignore.txt file in your project folder. Rule: http://ruby-doc.org/core-1.9.3/File.html#method-c-fnmatch

You can’t perform that action at this time.