mobifyUpload
Push builds to the Mobify Cloud
Example config
mobifyUpload: {
options: {
projectSlug: 'mobify-test',
settingsFile: './.local-settings'
},
src: ['bld/**', '!bld/test/test-credentials']
}
Refer to grunt's globbing patterns to specify file paths (http://gruntjs.com/api/grunt.file#globbing-patterns)
Optional Options
host
type: string
You can optionally specify the host of the endpoint where you want to upload your build. It defaults to cloud.mobify.com
options: {
host: 'cloud-test.mobify.com'
}
message
type: string
You probably want to send up some sort of descriptive message with your build. When you run the grunt task you can specify your message like this:
grunt mobifyUpload --message="An informative and witty build message."
saveCredentials
save your email and mobify api_key for future use
This will store your email and api key in a file which can be accessed when you upload your builds to the mobify cloud. You can specify the location of the file in your Gruntfile like so:
saveCredentials: {
src: '/Users/myself/.mobify'
}
Then to save your credentials run this command with your credentials:
grunt saveCredentials --user="user@mobify.com" --key="5up3rR4Nd0mK3y"
Deploy
To deploy this plugin you need to specify some environment variables that specify your github username and password.
export GITHUB_USERNAME='foobarnerson'
export GITHUB_PASSWORD='myaccesstoken'