From bf79858a210c8af214af56da2973c143de22a6c5 Mon Sep 17 00:00:00 2001 From: Grzesiek Kolodziejczyk Date: Wed, 11 Apr 2012 13:07:27 +0200 Subject: [PATCH 1/3] Add scroll to compile assets on production --- scrolls/compile_assets.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scrolls/compile_assets.rb diff --git a/scrolls/compile_assets.rb b/scrolls/compile_assets.rb new file mode 100644 index 0000000..525a8d7 --- /dev/null +++ b/scrolls/compile_assets.rb @@ -0,0 +1,12 @@ +gsub_file 'config/environments/production.rb', + 'config.assets.compile = false', 'config.assets.compile = true' + +__END__ + +name: Compile assets +description: "Configure Rails to compile assets in production. Use to skip the lengthy precompile process, and let the app compile assets when they're first requested. Useful for deployments where those assets are cached." +author: grk + +category: assets + +run_before: [git] \ No newline at end of file From 0c1eea7e4bec1f175976861b2c1a478901e767cc Mon Sep 17 00:00:00 2001 From: Grzesiek Kolodziejczyk Date: Wed, 11 Apr 2012 13:07:41 +0200 Subject: [PATCH 2/3] Add scroll to serve static assets on production --- scrolls/serve_static_assets.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scrolls/serve_static_assets.rb diff --git a/scrolls/serve_static_assets.rb b/scrolls/serve_static_assets.rb new file mode 100644 index 0000000..89e1d4b --- /dev/null +++ b/scrolls/serve_static_assets.rb @@ -0,0 +1,12 @@ +gsub_file 'config/environments/production.rb', + 'config.serve_static_assets = false', 'config.serve_static_assets = true' + +__END__ + +name: Serve static assets +description: Configure Rails to serve static assets in production. Useful for deployments that require the application to serve assets, such as Heroku and Shelly Cloud +author: grk + +category: assets + +run_before: [git] \ No newline at end of file From bafa0477ce94c9be60e5497f7c3915f682d4f61d Mon Sep 17 00:00:00 2001 From: Grzesiek Kolodziejczyk Date: Wed, 11 Apr 2012 13:08:07 +0200 Subject: [PATCH 3/3] Enable thin scroll --- scrolls/{zzz => }/thin.rb | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename scrolls/{zzz => }/thin.rb (100%) diff --git a/scrolls/zzz/thin.rb b/scrolls/thin.rb similarity index 100% rename from scrolls/zzz/thin.rb rename to scrolls/thin.rb