Skip to content

ccmorataya/py-ng-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages