deployjs / deployjs-cli

Deploy JS applications with a single command
MIT License
11 stars 3 forks source link

/usr/bin/env: 'node\r': No such file or directory #6

Open dadamschi opened 4 years ago

dadamschi commented 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.

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

I am trying to run this in a MacOS/Linux environment.

@duizendnegen any thoughts on this would be greatly appreciated.

dadamschi commented 4 years ago

I was able to over this issue by running dos2unix on ~/.config/yarn/global/node_modules/@deployjs/cli/bin/deploy.js.

Now I am getting the error [ERROR] -- Cannot read property 'write' of undefined