1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

Add an app for resizing images. Still needs rate limiting, and still trying to decide how to pass the correct URL to the app.

This commit is contained in:
Simo Kinnunen 2014-05-20 19:00:53 +09:00
parent 9e4dc269a2
commit e56d757cde
7 changed files with 158 additions and 1 deletions

View file

@ -500,6 +500,32 @@ program
})
})
program
.command('storage-plugin-image')
.description('start storage image plugin')
.option('-p, --port <port>'
, 'port (or $PORT)'
, Number
, process.env.PORT || 7100)
.option('-r, --storage-url <url>'
, 'URL to storage client'
, String)
.option('--cache-dir <dir>'
, 'where to cache images'
, String
, os.tmpdir())
.action(function(options) {
if (!options.storageUrl) {
this.missingArgument('--storage-url')
}
require('./roles/storage/plugins/image')({
port: options.port
, storageUrl: options.storageUrl
, cacheDir: options.cacheDir
})
})
program
.command('migrate')
.description('migrates the database to the latest version')