Comments (4)
ng
>Connection refused...
whereis ng
>ng: /usr/bin/ng /usr/local/bin
sudo mv /usr/bin/ng /usr/bin/ng2
sudo mv /usr/local/bin/ng /usr/local/bin/ng2
sudo npm install -g @angular/cli
sudo ln -s /usr/lib/node_modules/@angular/cli/bin/ng /usr/local/bin/ng
ng
>ng build <options...> ...
Workaround for changing nailgun to ng2 and getting ng to refer to Angular CLI
from nailgun.
Did not work for me.
Running NailGun's ng command when installed (or nailgun on Ubuntu) without any parameters/args prints out the help text.
When you move the file (ng -> ng2, or basically ng -> *), then this breaks, and you get the "Connection refused" instead of the help text. At least for my company's build workflow, when I tried moving the NailGun executable, then our build stopped working, printing out "Connection refused".
Not sure why simply renaming the executable causes these issues unless it is hardcoded somewhere. You also cannot symlink it to any other name.
Here is the help text / version I am getting when it is successful:
NailGun v0.9.0
Usage: ng class [--nailgun-options] [args]
(to execute a class)
or: ng alias [--nailgun-options] [args]
(to execute an aliased class)
or: alias [--nailgun-options] [args]
(to execute an aliased class, where "alias"
is both the alias for the class and a symbolic
link to the ng client)
where options include:
--nailgun-D<name>=<value> set/override a client environment variable
--nailgun-version print product version and exit
--nailgun-showversion print product version and continue
--nailgun-server to specify the address of the nailgun server
(default is NAILGUN_SERVER environment variable
if set, otherwise localhost)
--nailgun-port to specify the port of the nailgun server
(default is NAILGUN_PORT environment variable
if set, otherwise 2113)
--nailgun-filearg FILE places the entire contents of FILE into the
next argument, which is interpreted as a string
using the server's default character set. May be
specified more than once.
--nailgun-help print this message and exit
from nailgun.
Could you give Angular CLI a different name instead?
ie
sudo ln -s /usr/lib/node_modules/@angular/cli/bin/ng /usr/local/bin/ang
from nailgun.
Oh, of course, that works fine to use Angular (and ultimately what I did to play with angular-cli).
The maintainers do not seem open to a name-change though. Feel free to see #111 for more on the issue with the binary. I am curious to see why so may dig into that issue when I have some spare time.
from nailgun.
Related Issues (20)
- How to properly terminate the nail? HOT 2
- Overhead of SecurityManager HOT 17
- Publish nailgun to maven central HOT 2
- ng.py crashes in a cygwin environment when trying to reference Kernel32 dll
- Problem with nested connections to a unix domain socket HOT 2
- Publish 0.9.3 artifacts to a public repository HOT 2
- Nailgun server crashes HOT 8
- NGServer or ng client changes path delimiters on output HOT 2
- Documentation is lacking HOT 2
- Running `mvn package` fails with JavaDoc errors HOT 1
- Support Java versions greater than 8?
- Run nailgun without classpath as code comes on the fly HOT 1
- JDK 11/12 Support HOT 2
- Remove / tone down the scary 'NOT MAINTAINED' header
- Server's sockets are not shut down in an orderly fashion; sending heartbeats can occasionally fail HOT 1
- Release? HOT 1
- Unused value
- Make error HOT 1
- still mantained? HOT 2
- Mirroring policy breaks repositories HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nailgun.