Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ccmorataya/py-ng-deploy
https://github.com/ccmorataya/py-ng-deploy
angular-cli deployment pysftp python3
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ccmorataya/py-ng-deploy
- Owner: ccmorataya
- Created: 2019-05-27T15:50:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-13T16:20:01.000Z (over 5 years ago)
- Last Synced: 2024-10-19T02:14:47.297Z (3 months ago)
- Topics: angular-cli, deployment, pysftp, python3
- Language: Python
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# py-ng-deploy
## Requirements
* node
* angular-cli
* python3## Install
**_Recomended_**
```
pip install py-ng-deploy
```
**_Alternative_**
* Clone this repo:
`$ git clone https://github.com/ccmorataya/py-ng-deploy.git`
* Change dir to _py-ng-deploy:_
`$ cd py-ng-deploy`
* Install with _setup.py:_
`$ python setup.py install`## Usage
### Info
Shows version, simple usage and notify if the actual folder doesn't has an rc file.
```
$ pyngDeploy
```> **NOTE** `pyngDeploy` needs to be runned inside the angular project
### Initialize project
```
$ pyngDeploy init
```>_After `init` is required to edit the .pyngdeployrc file with the following structure:_
```ini
[dev]
Host = localhost
Username = user
Password = pass
RemoteDir = /remote/dir/path[prod]
Host = localhost
Username = user
Password = pass
RemoteDir = /remote/dir/path
```> **Remember to exclude the `.pyngdeployrc` file from git**
### Build and upload (development)
```
$ pyngDeploy dev
```### Build and upload (production)
```
$ pyngDeploy prod
```### Build with hash in `` and upload (development)
```
$ pyngDeploy dev --hash
```### Restore last backup
```
$ pyngDeploy dev --restore
```## TODO
- [X] Avoid leaving `None` the `cnopts.hostKeys`
- [X] Change rcfile to configuration file (.ini)
- [X] Add colors to `pyngDeploy` messages
- [X] Add check for .pyngdeployrc when `pyngDeploy` is lauched and send warning
- [X] Improve upload integration from Windows to Linux
- [X] Add `Port` key in .pyngdeployrc and read it
- [ ] Add flag `--skip-build`