angular-server-side-configuration
Advanced tools
Comparing version
{ | ||
"name": "angular-server-side-configuration", | ||
"version": "2.0.0-beta.3", | ||
"version": "2.0.0", | ||
"description": "Configure an angular application on the server", | ||
@@ -5,0 +5,0 @@ "main": "./main.js", |
@@ -127,2 +127,31 @@ # angular-server-side-configuration | ||
#### Native CLI | ||
This library provides a native implementation for the `insert` command of the CLI. Go to | ||
[Releases](https://github.com/kyubisation/angular-server-side-configuration/releases) and download the appropriate | ||
executable for your server environment. | ||
(See [build.sh](https://github.com/kyubisation/angular-server-side-configuration/blob/master/src/go-cli/build.sh) for | ||
build details of the native CLI. Please open an [Issue](https://github.com/kyubisation/angular-server-side-configuration/issues/new) | ||
if you need an additional environment.) | ||
Thanks to [DanielHabenicht](https://github.com/DanielHabenicht) for the input and contribution. | ||
##### Minimal Example | ||
Dockerfile | ||
```Dockerfile | ||
FROM nginx:alpine | ||
ADD https://github.com/kyubisation/angular-server-side-configuration/releases/download/v2.0.0/ngssc_64bit /usr/sbin/ngssc | ||
RUN chmod +x /usr/sbin/ngssc | ||
COPY dist /usr/share/nginx/html | ||
COPY start.sh start.sh | ||
RUN chmod +x ./start.sh | ||
CMD ["./start.sh"] | ||
``` | ||
start.sh | ||
```bash | ||
#!/bin/sh | ||
ngssc insert /usr/share/nginx/html | ||
nginx -g 'daemon off;' | ||
``` | ||
## CLI | ||
@@ -129,0 +158,0 @@ angular-server-side-configuration provides a CLI. |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
361975
0.29%0
-100%231
14.36%