Changeset 522 for Dev/trunk/Gruntfile.js


Ignore:
Timestamp:
03/17/14 21:50:17 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Add option to deploy source to Heroku (for debugging).
  • Rewrite xhr so requests are not serialized anymore.
  • Give more sane errors on request errors to Couch (like network errors and such).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/Gruntfile.js

    r520 r522  
    3131                       ['path-check:foreman'
    3232                       ,'compile'
    33                        ,'foreman:dev']);
     33                       ,'foreman:run-src']);
    3434    grunt.registerTask('build',
    3535                       "Compile and make a Dojo build of the client (compress sources).",
     
    4343                       ['path-check:foreman'
    4444                       ,'build'
    45                        ,'foreman:build']);
     45                       ,'foreman:run-build']);
    4646    grunt.registerTask('deploy',
    4747                       "Make a build and deploy it to Heroku.",
     
    5050                       ,'svninfo'
    5151                       ,'build'
    52                        ,'git_deploy:deploy']);
     52                       ,'git_deploy:deploy-build']);
     53    grunt.registerTask('deploy-src',
     54                       "Deploy sources to Heroku (FOR DEBUGGING ONLY).",
     55                       ['path-check:svn'
     56                       ,'path-check:git'
     57                       ,'svninfo'
     58                       ,'compile'
     59                       ,'git_deploy:deploy-src']);
    5360    // database management
    5461    grunt.registerTask('db-backup-cloud-to-dated-local',
     
    126133        },
    127134        foreman: {
    128             dev: {
     135            'run-src': {
    129136                options: {
    130137                    cwd: srcDir
    131138                }
    132139            },
    133             build: {
     140            'run-build': {
    134141                options: {
    135142                    cwd: buildDir
     
    138145        },
    139146        git_deploy: {
    140             deploy: {
     147            'deploy-build': {
    141148                options: {
    142149                    url: 'git@heroku.com:quod-erat.git',
    143150                    branch: 'master',
    144                     message: "Deployment of revision <%= svninfo.rev %> on <%= grunt.template.today() %>."
     151                    message: "Build deployment of revision <%= svninfo.rev %> on <%= grunt.template.today() %>."
    145152                },
    146153                src: buildDir
     154            },
     155           
     156            'deploy-src': {
     157                options: {
     158                    url: 'git@heroku.com:quod-erat.git',
     159                    branch: 'master',
     160                    message: "Source deployment of revision <%= svninfo.rev %> on <%= grunt.template.today() %>."
     161                },
     162                src: srcDir
    147163            }
    148164        },
Note: See TracChangeset for help on using the changeset viewer.