Skip to content
🚀 DMCode - like a deploy my code. Allows you to upload your code to an ftp server without any ftp-clients.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dmcode - fix upload files without ext Dec 8, 2019
tests - fix upload files without ext Dec 8, 2019
.gitignore
LICENSE Initial commit Nov 10, 2019
MANIFEST.in 💥 rename project name; add package to pypi Nov 13, 2019
README.md - fix more bugs with paths Dec 7, 2019
requirements.txt fix more bugs and add fetch token paste-method Dec 3, 2019
setup.py - fix more bugs with paths Dec 7, 2019

README.md

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 sftp support available in v.0.2
  • add mysql backup restore
  • ask user when replacing file [--replace ASK|NOT|default: replace all]

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

or for sftp:

dmcode --sftp

or specify ftp settings right away:

dmcode --ftp|--sftp --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 = allowed maximal directory size for upload (in Bytes)
max_size_file = allowed maximal file size for upload (in Bytes)

Deploy your code

Just execute:

dmcode --dmc_ftp|--dmc_sftp

Setup

pip install dmcode

or

git clone https://github.com/foozzi/dmcode.git && cd dmcode
python setup.py install
You can’t perform that action at this time.