Its great to see you trying out our new beta build and experimenting with some of its cool new features.
As for your 404 error, I suspect it is because you are providing the full PackageUpload route in the host field when configuring your gulp task. If you specify just the base path to your octopus deploy instance (e.g. http://my-octopus-server) then the push module will append the appropriate route to the upload location.
Perhaps we should make the error message and documentation more clear on this matter.
Let me know if you have any further questions around this feature, or the above steps fail to work.
With the tests in the PR i can now see what you are talking about. Thanks for taking the time to put it together. I have merged the changes in and bumped up the number so it should now be available through npm. One of the key advantages of providing these tools as open source is that we can get great contributions like this from the community that actually use it.
Please let us know what your experiences and thoughts are with doing these node deployments as they are a new feature and feedback from our users will enable us to make it even better in the future.
Thanks again, and I hope these changes allow you to continue with your work.