ember-cli-deploy-rsync
ember-cli-deploy-rsync copied to clipboard
Authentication-Error
Dear all,
Why does rsync require a password?
the user dev is does not exist an i have no user dev declared in deploy.js
i applied ssh-copy-id to the remote machine, so that i can login by ssh without password.
ember deploy production --verbose --activate=true
+- willUpload
| |
| +- gzip
| - gzipping `**/*.{js,css,json,ico,map,xml,txt,svg,eot,ttf,woff,woff2}`
| - ignoring `null`
| - ✔ assets/testapp-d41d8cd98f00b204e9800998ecf8427e.css
| - ✔ assets/vendor-d41d8cd98f00b204e9800998ecf8427e.css
| - ✔ assets/testapp-f9e672609184f5ff74498296221717ba.js
| - ✔ robots.txt
| - ✔ assets/vendor-2f9f2cb75de79a6256a70e8408086bb7.js
| - gzipped 5 files ok
|
+- upload
| |
| +- rsync
| - Uploading using rsync...
[email protected]'s password:
/* eslint-env node */
'use strict';
module.exports = function(deployTarget) {
let ENV = {
build: {
environment: deployTarget
},
'revision-data': {
type: 'git-commit'
},
'ssh-index': {
remoteDir: "/srv/my-app",
username: "my-app",
host: "188.178.195.61",
privateKeyFile: "/home/my-app/.ssh/authorized_keys",
allowOverwrite: true
}
// include other plugin configuration that applies to all deploy targets here
};
if (deployTarget === 'development') {
ENV.build.environment = 'development';
// configure other plugins for development deploy target here
}
if (deployTarget === 'staging') {
ENV.build.environment = 'production';
// configure other plugins for staging deploy target here
}
if (deployTarget === 'production') {
ENV.build.environment = 'production';
ENV.rsync = {
dest: "/srv/my-app",
username: "my-app",
host: "188.178.195.61",
ssh: true,
recursive: true,
delete: true,
args: ['--verbose', '-ztl']
}
// configure other plugins for production deploy target here
}
// Note: if you need to build some configuration asynchronously, you can return
// a promise that resolves with the ENV object instead of returning the
// ENV object synchronously.
return ENV;
};