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 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 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