Open dadamschi opened 4 years ago
I am trying to git-deploy an express app to Azure. When I run the following command locally or in Gitlab, I get the following error /usr/bin/env: 'node\r': No such file or directory.
/usr/bin/env: 'node\r': No such file or directory
Has anyone seen this issue?
deploy.js
'use strict'; module.exports = function(deployTarget) { if (deployTarget === 'production') { console.log('deploying...'); return { 'git': { repo: process.env.REPO, branch: 'master', worktreePath: '/tmp/ef4-deploy-lightning-app', commitMessage: 'Deployed %@' } }; }; };
The command I used to deploy is deployjs deploy -e production --verbose
deployjs deploy -e production --verbose
I am trying to run this in a MacOS/Linux environment.
@duizendnegen any thoughts on this would be greatly appreciated.
I was able to over this issue by running dos2unix on ~/.config/yarn/global/node_modules/@deployjs/cli/bin/deploy.js.
dos2unix
~/.config/yarn/global/node_modules/@deployjs/cli/bin/deploy.js
Now I am getting the error [ERROR] -- Cannot read property 'write' of undefined
[ERROR] -- Cannot read property 'write' of undefined
I am trying to git-deploy an express app to Azure. When I run the following command locally or in Gitlab, I get the following error
/usr/bin/env: 'node\r': No such file or directory
.Has anyone seen this issue?
deploy.js
The command I used to deploy is
deployjs deploy -e production --verbose
I am trying to run this in a MacOS/Linux environment.
@duizendnegen any thoughts on this would be greatly appreciated.