GithubHelp home page GithubHelp logo

ember-cli-deploy / ember-cli-deploy-ssh-tunnel Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 8.0 263 KB

a plugin for ember-cli-deploy that opens an ssh tunnel and forwards a given port

License: MIT License

JavaScript 100.00%
ember-cli-deploy-plugin

ember-cli-deploy-ssh-tunnel's People

Contributors

ember-tomster avatar evoactivity avatar g-cassie avatar ghedamat avatar jdaviderb avatar lukemelia avatar nikz avatar typeoneerror avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ember-cli-deploy-ssh-tunnel's Issues

Better example in documentation

It's not very obvious that you have to or how to use the context to obtain the auto-generated srcPort without going through your source and basically learning how to write a plugin, not something I really wanted to do in order to get a deployment pushed out in a hurry (having taken over a project). It should be simply stated in the readme file.

Cannot find module 'rsvp' when installing addon.

I get the error Cannot find module 'rsvp' when doing ember install ember-cli-deploy-ssh-tunnel.

Now I know this can be an npm related issue as I've seen here ember-cli/ember-cli#3714 but the problem keeps persisting after all the suggested fixes, i.e., rm -rf node_modules && npm cache clear && npm install.

The exception trace:

Cannot find module 'rsvp'
Error: Cannot find module 'rsvp'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/richard/Work/srxp/setup/srxp/webapp/node_modules/ember-cli-deploy-ssh-tunnel/index.js:3:12)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)

In any case, I needed to install RSVP package separately (https://www.npmjs.com/package/rsvp) to solve this issue. Therefore I naively conclude that the ember-cli-deploy-ssh-tunnel package is missing this dependency. I don't see another way of performing require('rsvp') successfully if the rsvp package is not directly installed... but I could be wrong.

OS version: Mac OS Mojave 10.14 (18A391)
Ember-cli: 2.5.1
npm: 2.15.11
node: 4.8.6

A way to "disable" this pipeline step in particular environments

I've got this working for our live deployments (awesome btw ๐Ÿ‘) but I'm just trying to test something out locally and I feel like I have to fight against this plugin to get it to work.

The key fact is that I just don't want it to run when I am running a deployment environment deploy and it feels odd that in these cases it is complaining that username and host are required. I don't know if this sort of API is supported by ember-cli-deploy but it would be great if you could add the following config:

if (deployTarget === 'development') {
    ENV['ssh-tunnel'] = {
      disabled: true
    };
  }

which not only disables the pipeline step but it also prevents ember-cli-deploy from running validations on "required" parameters.

Just a thought ๐Ÿ˜‰

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.