namespace assets
Configuration
Add these variables in your deploy.rb file before using any of the tasks below.
add_default_content
Adds default asset contents from config/preseed/ to the server. Files fileadmin.tar.gz and uploads.tar.gz will be uploaded to the shared assets directory.
Usage
download
Copies current contents from configured asset folders on the server to the local ./temp/assets directory.
Usage
Output
Assets files are stored in the ./temp/assets/.
update
Adds asset contents from ./temp/assets directory to the server.
Usage
cleanup
Removes contents of the folders configured in :asset_folders
variable on the server.
Usage
Output
Empty asset folders.
compile_compass
Compiles sass files in a css file.
Configuration
Set your sass file paths or whole directory paths from your project in :compass_sources.
Possible values for :compass_compile_arguments
are ['--boring', '--environment', 'production']
.
Add a config.rb file in your sass stylesheets directory.
Usage
Output
The task outputs the compiled CSS file/s in the configured directory from the config.rb file.
add_htpasswd
Adds .htpasswd file to assets folder. Enter name and password which access the asset directory.
Usage
Output
The .htpasswd file is stored in htdocs/shared/. Password protection for assets directory.