ember-cli-deploy / ember-cli-deploy-ssh-tunnel Goto Github PK
View Code? Open in Web Editor NEWa plugin for ember-cli-deploy that opens an ssh tunnel and forwards a given port
License: MIT License
a plugin for ember-cli-deploy that opens an ssh tunnel and forwards a given port
License: MIT License
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.
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
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 ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.