py-ng-deploy
Requirements
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:
[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 <title>
and upload (development)
$ pyngDeploy dev --hash
Restore last backup
$ pyngDeploy dev --restore
TODO