Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

py-ng-deploy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

py-ng-deploy

Compile angular project and upload to sftp

  • 0.0.14
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc