https://github.com/stefanoschrs/ng-deploy
Angular & AngularJS deployer
https://github.com/stefanoschrs/ng-deploy
angular angular-cli angularjs
Last synced: about 1 month ago
JSON representation
Angular & AngularJS deployer
- Host: GitHub
- URL: https://github.com/stefanoschrs/ng-deploy
- Owner: stefanoschrs
- License: mit
- Created: 2018-06-01T16:01:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-03T19:28:42.000Z (about 8 years ago)
- Last Synced: 2025-09-08T06:44:04.222Z (9 months ago)
- Topics: angular, angular-cli, angularjs
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular & AngularJS deployer
## Usage
```
cd my-app
ng-deploy --env dev --build --sync
```
- **env** string
Select environment
- **build**
Build project
- **sync**
Sync files
- **sync-type**
How to sync files: ssh, aws
- **backup**
Backup target
## Configuration
- Create a `.ng-deploy.json` file in your project dir with your **env** configurations (Example [here](.ng-deploy.example.json))
- Change your `package.json` accordingly to contain the **build:\** scripts:
```
{
"name": "my-app",
"scripts": {
...
"build:prod": "ng build --prod --aot --build-optimizer --base-href='https://www.google.com'",
"build:dev": "ng build --base-href='https://dev.google.com'",
...
}
}
```