Skip to main content

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 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

  • Avoid leaving None the cnopts.hostKeys
  • Change rcfile to configuration file (.ini)
  • Add colors to pyngDeploy messages
  • Add check for .pyngdeployrc when pyngDeploy is lauched and send warning
  • Improve upload integration from Windows to Linux
  • Add Port key in .pyngdeployrc and read it
  • Add flag --skip-build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-ng-deploy-0.0.14.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_ng_deploy-0.0.14-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

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

Hashes for py-ng-deploy-0.0.14.tar.gz
Algorithm Hash digest
SHA256 5b92637654711dff1f43c8cbcc2f1cf664f8f91ed7129326a1cbdb26773cf298
MD5 16e6b3e0f1e52b1b6af9a26f1ed8ea6f
BLAKE2b-256 18cb99f68bf2e6d0bc04938fa016e45279c0d86e3767e605f58b5d05a8fb8a57

See more details on using hashes here.

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

Hashes for py_ng_deploy-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 00143b7acb9063942742ac821e4bcb972e244ff941856da8b27ac6632726a503
MD5 842358b86856a1234499e96e2a8292e2
BLAKE2b-256 8612a4415d09826eb2b7f6ade39d65a0182b352ea13edf7272d636bb043231bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page