kevinohara80 / grunt-ant-sfdc

Add salesforce and force.com ANT tasks to your grunt builds
MIT License
57 stars 50 forks source link

Deployment 'succeeds' but files are not in sfdc #29

Closed mattsones closed 8 years ago

mattsones commented 8 years ago

I believe I've successfully set up grant-ant-sfdc. It looks like it's working. But when i log in to the actual salesforce org, the files that I deployed aren't there.

Any ideas why that might be?

Here is the 'successful' deployment antdeploy

mattsones commented 8 years ago

Ah, nevermind. I should have done a little digging first. It looks like my sessionConfig overrode my target org.

'antdeploy': {
      options: {
        sessionConfig: grunt.file.readJSON('config/.session')
      },
      build: {
        options: {
          root: 'build/',
          user: grunt.option('buildtarget')+'U',
          pass: grunt.option('buildtarget')+'P',
          token: grunt.option('buildtarget')+'T',
          serverurl: ((buildtarget && (buildtarget.indexOf('sand') ===-1)) ? 'https://login.salesforce.com' : 'https://test.salesforce.com')
        },
        pkg: {   // Package to deploy
          staticresources: ['*']
        }
      }
    },

The files were deployed to the active session org, not the org specified for the 'build' target.