Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (23 sloc) 0.745 kB
require 'tower'
knox = require 'knox'
task 'environment', ->
Tower.env = 'production'
Tower.Application.instance().initialize()
task 'routes', ->
invoke 'environment'
result = []
routes = Tower.Route.all()
result
task 'assets:upload', ->
invoke 'assets:upload:s3'
task 'assets:upload:s3', ->
invoke 'environment'
client = knox.createClient Tower.secrets.s3
Tower.Application.Assets.upload (from, to, headers, callback) ->
client.putFile from, to, headers, callback
task 'assets:bundle', ->
invoke 'environment'
Tower.Application.Assets.bundle()
task 'assets:stats', 'Table displaying uncompressed, minified, and gzipped asset sizes', ->
invoke 'environment'
Tower.Application.Assets.stats()
Jump to Line
Something went wrong with that request. Please try again.