Compile angular project and upload to sftp
Project description
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
pyngDeployneeds to be runned inside the angular project
Initialize project
$ pyngDeploy init
After
initis 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
.pyngdeployrcfile 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
- Avoid leaving
Nonethecnopts.hostKeys - Change rcfile to configuration file (.ini)
- Add colors to
pyngDeploymessages - Add check for .pyngdeployrc when
pyngDeployis lauched and send warning - Improve upload integration from Windows to Linux
- Add
Portkey in .pyngdeployrc and read it - Add flag
--skip-build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py-ng-deploy-0.0.14.tar.gz.
File metadata
- Download URL: py-ng-deploy-0.0.14.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b92637654711dff1f43c8cbcc2f1cf664f8f91ed7129326a1cbdb26773cf298
|
|
| MD5 |
16e6b3e0f1e52b1b6af9a26f1ed8ea6f
|
|
| BLAKE2b-256 |
18cb99f68bf2e6d0bc04938fa016e45279c0d86e3767e605f58b5d05a8fb8a57
|
File details
Details for the file py_ng_deploy-0.0.14-py3-none-any.whl.
File metadata
- Download URL: py_ng_deploy-0.0.14-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00143b7acb9063942742ac821e4bcb972e244ff941856da8b27ac6632726a503
|
|
| MD5 |
842358b86856a1234499e96e2a8292e2
|
|
| BLAKE2b-256 |
8612a4415d09826eb2b7f6ade39d65a0182b352ea13edf7272d636bb043231bc
|