Giter VIP home page Giter VIP logo

py-ng-deploy's Introduction

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

py-ng-deploy's People

Contributors

ccmorataya avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.