Code Monkey home page Code Monkey logo

dmcode's Introduction

DMC

DMCode - like a deploy my code Allows you to upload your code to an ftp server without any ftp/sftp clients. asciicast

why is this needed?

for example, you need to quickly deploy code or files to a remote ftp or sftp server directly from a directory with easy-to-understand console commands.

Where is working?

Linux, MacOS, Windows - in progress ๐Ÿš€

TODO v1.0

  • add mysql backup restore
  • ask user when replacing file [--replace ASK|NOT|default: replace all]
  • add save rights after deploying
  • add windows support
  • add "paste" method

dmc.ini

Using the configuration file dmc.ini, you can exclude directories, files or file extensions that you do not need, and more. Just execute the command in the desired directory for ftp:

dmcode --ftp_config

or for sftp:

dmcode --sftp_config

or specify ftp settings right away:

dmcode --ftp_config|--sftp_config --host <your_ftp_host> --port <your_ftp_port> --password <your_ftp_password> --path /var/www/html

this is to create a configuration file dmc.ini that you can edit.

[DMC]
ignore_ext = ignored extensions for upload
ignore_files = ignored file names for upload
ignore_dirs = ignored directory names for upload
max_size_dir_mb = allowed maximal directory size for upload (in Bytes)
max_size_file_mb = allowed maximal file size for upload (in Bytes)

Deploy your code

Just execute:

dmcode --ftp|--sftp

Setup

pip install dmcode

or

git clone https://github.com/foozzi/dmcode.git && cd dmcode
python setup.py install

dmcode's People

Contributors

foozzi avatar

Stargazers

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