{ "info": { "author": "Mon-ius", "author_email": "m1105930979@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "# flask-deploy\n\nA simple scripts for deploying flask apps with Nginx, PostgreSQL , HTTPS and Systemd Daemon.\n\n## Install\n\n### Using pip \n\n`pip install flask-deploy`\n\n## Usage\n\n### Deploy on current directory\n\nchange directory to your flask project\n\n`flask-deploy` **or** `fd`\n\n### Principle and Variable\n\n- `usr` : current user on Linux\n - root \n- `domain` : domain name of the site\n - xx.flask.org\n- `env` : root location of the project\n - exampleProject/ \n- `loc` : location of directory storing the config files\n - exampleProject/xx.flask.org/\n\n## Features\n\n### DNS support\n\n- cloudflare\n- aliyun\n\n### Server support\n\n- NGINX\n- Caddy(Future)\n\n### MiddleWare support\n\n- uSWGI\n- gevent\n- gunicorn(Future)\n\n### Docker support\n\n- PostgreSQL DataBase\n\n### System Service\n\n- Systemd(Linux)\n\n## Assumptions\n\n- You're user : `www`\n- You have experience with Linux\n\n## requirements\n\nAssumed you have these following conditions.\n\n### OutSide\n\n- server\n - `example : centos`\n\n - ip address : \n\n- domain\n - `example : www.example.com`\n\n- DNS\n - redirect => \n\n\n### Software and enviroment\n\n- git\n- wget\n- curl\n- Nginx\n- docker-ce\n- Anaconda3\n- Python3.6+\n- uWSGI\n- Gevnet\n\n## Start\n\nFollowing these steps, then select things you want. All of things will be generated.\n\n- create a user (For example : www)\n- Switch to python virtual env\n- python init.py\n\nThen change to ROOT or sudoer with following things.\n\n## Get SSL\n\n- Run ``` sudo ./domain.sh ```\n\nIt will generate the certifications(.cer,.key) for your project if you first run it.\n\n## Configure nginx for FLASK Application\n\n- ``` sudo mv ./domain.conf /etc/nginx/sites-enabled```\n\nIt will add the configuration file to NGINX for your project if you first run it.\n\n## Run FLASK Application as Systemd Daemon\n\n- ``` sudo mv ./domain.service /etc/systemd/system```\n\n- sudo systemctl enable domain\n\n- sudo systemctl start domain\n\nIt will add the service file to Systemd and make your project run as system service if you first run it.\n\nThen you could manage it by:\n\n- sudo systemctl stop domain\n\n- sudo systemctl restart domain\n\n\n## Attention\n\n### Ubuntu 18.x\n\n- docker-ce install \n\n`sudo apt install apt-transport-https ca-certificates curl software-properties-common`\n`curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -`\n`sudo add-apt-repository \"deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable\"`\n`sudo apt install docker-ce`\n\n## Options\n\n### Anaconda environment\n\nSuppose location : `/opt/anaconda3`\n\n- sudo chown -R www:www /opt/ && cd /opt\n- wget \"https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh\"\n- sudo chmod +x ./Anaconda3-5.3.1-Linux-x86_64.sh && ./Anaconda3-5.3.1-Linux-x86_64.sh\n- following the tips: `yes` - `/opt/anaconda3` - `yes`\n\n### Anaconda setup\n\n- conda create -n deploy python=3.6\n- conda activate deploy\n- conda install -c conda-forge gevent\n- conda install -c conda-forge uwsgi\n\n## Update\n\n- Version 0.3 Feb 17,2019\n - add new dns ssl generation: aliyun\n - add separate `test` folder\n - add number validation\n - change logic -> \n\n- Version 0.4 March 18,2019\n - keep environment variable use `sudo -E`\n - keep python global variable use duplicate code\n\n## MIT License\n\nCopyright (c) 2018 Monius\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Mon-ius/flask-deploy", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "flask-deploy", "package_url": "https://pypi.org/project/flask-deploy/", "platform": "linux", "project_url": "https://pypi.org/project/flask-deploy/", "project_urls": { "Homepage": "https://github.com/Mon-ius/flask-deploy" }, "release_url": "https://pypi.org/project/flask-deploy/0.4.3/", "requires_dist": [ "click" ], "requires_python": "", "summary": "A quick deploy script for productive flask app", "version": "0.4.3" }, "last_serial": 5287007, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "bc940b670b4ff16531802c4514881a3e", "sha256": "8de1e1c63472dd009ab8f367db137e4ee262d09e81b9f5dc2052c14c0ad2775f" }, "downloads": -1, "filename": "flask_deploy-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bc940b670b4ff16531802c4514881a3e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14032, "upload_time": "2018-12-12T17:19:35", "url": "https://files.pythonhosted.org/packages/d4/ff/a4ffbb8644d7e2de521ad8e736033cf784cacb186718101f97736ecdfa85/flask_deploy-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2a9e31d23a7dcfd3e8f18335159e65a4", "sha256": "5fb57997c1a1308b78509453283db3d55788470a40874306f7c87130d1759573" }, "downloads": -1, "filename": "flask-deploy-0.1.tar.gz", "has_sig": false, "md5_digest": "2a9e31d23a7dcfd3e8f18335159e65a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7658, "upload_time": "2018-12-12T17:19:37", "url": "https://files.pythonhosted.org/packages/af/33/57f6102fdbb176fd97f0aac388e0276cd659e6afe19ee574ce93e5a9537b/flask-deploy-0.1.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "9c3467089a96e80ea289d8a461dda753", "sha256": "b0d8dc2128f2b886844ec8c7339798aeeb2eee4f1e14d3689761a2b48dccb488" }, "downloads": -1, "filename": "flask_deploy-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9c3467089a96e80ea289d8a461dda753", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15449, "upload_time": "2018-12-19T19:47:10", "url": "https://files.pythonhosted.org/packages/d7/25/d446ef179c4cb0b6a0774cb3048155e049a3ac471c7a02a21e8daaa78ad0/flask_deploy-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0dc4eb549e9eca144ee37e8e6c73727b", "sha256": "f35c81ac8549b1abdfcf4b7a62e1a6d72ec0964ce69fbcee2327763687d128a6" }, "downloads": -1, "filename": "flask-deploy-0.2.1.tar.gz", "has_sig": false, "md5_digest": "0dc4eb549e9eca144ee37e8e6c73727b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8543, "upload_time": "2018-12-19T19:47:11", "url": "https://files.pythonhosted.org/packages/8c/2e/4af018da7f67b7bab4582db450e2ca1169c59be561b9b15671c5cdb4f1ee/flask-deploy-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "bd0e3a1ad919ba82e4d9848fb2597295", "sha256": "4314d6226c181fb6229f76febd700236ff2bcc2a310cf8daf90ceff6881715fd" }, "downloads": -1, "filename": "flask_deploy-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bd0e3a1ad919ba82e4d9848fb2597295", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16443, "upload_time": "2018-12-25T17:56:30", "url": "https://files.pythonhosted.org/packages/86/5f/434ba43acb2de2380d7b0f10ef60214489498d80b4134d8bfe0b66b6001a/flask_deploy-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83eff1431ebe2bb81a39fe3a868ef910", "sha256": "6aa1bb2db267764d0e54d3eed25359c35c7ce03ff5c8860f093a958e94a516b0" }, "downloads": -1, "filename": "flask-deploy-0.2.2.tar.gz", "has_sig": false, "md5_digest": "83eff1431ebe2bb81a39fe3a868ef910", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8901, "upload_time": "2018-12-25T17:56:33", "url": "https://files.pythonhosted.org/packages/24/82/6bc40702ac319da5f240368ea2c2ad8b682441e29857d41f2c4530539577/flask-deploy-0.2.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "2691d9622c19a0e58f8954c2f368719a", "sha256": "b35062f7e98ed04eaa009a55514b028560cfe79050e91987b536df00700159b8" }, "downloads": -1, "filename": "flask_deploy-0.3.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "2691d9622c19a0e58f8954c2f368719a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19904, "upload_time": "2019-02-20T12:05:52", "url": "https://files.pythonhosted.org/packages/ee/bc/c389dd42655482610c0985e26baeca6d4300cfc37022319f55cd683f6a63/flask_deploy-0.3.0-py2.py3-none-any.whl" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "2825447c784ec4b0ef72461bd61e9d0b", "sha256": "1d603c752454977f017e16cb5cb22c56135d24950fd25d60154223f5a9b0b60a" }, "downloads": -1, "filename": "flask_deploy-0.3.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "2825447c784ec4b0ef72461bd61e9d0b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19915, "upload_time": "2019-03-18T15:49:03", "url": "https://files.pythonhosted.org/packages/df/81/0212ec36b3859df984ca8a9456c2d8089af6315bb1e319200c3e4535565b/flask_deploy-0.3.1-py2.py3-none-any.whl" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "c9b2ae16c88677cdb006499a4796e403", "sha256": "025b102f7623c4385194728f27e7d2e6d14a6c2e9f312c29f86c9cf18cb9fdda" }, "downloads": -1, "filename": "flask_deploy-0.3.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "c9b2ae16c88677cdb006499a4796e403", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19922, "upload_time": "2019-03-18T15:53:47", "url": "https://files.pythonhosted.org/packages/41/49/225b04490914a67f596438d5b243468cb863a63992f5a1d77df9c4c4fa19/flask_deploy-0.3.2-py2.py3-none-any.whl" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "1e35bf4af22ad2c68e0cb355935c6fee", "sha256": "1f7a01982de533129a57d69aa4264b8524711ded21da9c4940e61cba3e8fa7a6" }, "downloads": -1, "filename": "flask_deploy-0.3.3-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "1e35bf4af22ad2c68e0cb355935c6fee", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 21429, "upload_time": "2019-03-18T16:21:40", "url": "https://files.pythonhosted.org/packages/43/87/ed79e943ecd2c87ab814ba7a738dd88c773354ac9b8d057176424cde58f3/flask_deploy-0.3.3-py2.py3-none-any.whl" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "3f215e9a8c32f23e4ad766700b25a42c", "sha256": "aad3adc3b021887eff50ed42abda3bd040f80cdc704ba0f6f9679ce6c2ba3fc3" }, "downloads": -1, "filename": "flask_deploy-0.3.4-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "3f215e9a8c32f23e4ad766700b25a42c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 21453, "upload_time": "2019-03-18T16:35:24", "url": "https://files.pythonhosted.org/packages/a7/0c/00e9b34bdfafca38d1a823da2c583f9ae66ba99c2b4aa468d0158ddd936d/flask_deploy-0.3.4-py2.py3-none-any.whl" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "7f056fa372e7146afae803a9dfb7d392", "sha256": "fe78287d4a05a44baa1cdb023d1061715aa1357512dcf1c8dd6731d17e4b4275" }, "downloads": -1, "filename": "flask_deploy-0.3.5-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "7f056fa372e7146afae803a9dfb7d392", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 21490, "upload_time": "2019-03-18T16:49:18", "url": "https://files.pythonhosted.org/packages/2a/58/08e25a02ff8f3ea2b1ba8168b7cdf169bb3e03b2d516e38eda52ca561a85/flask_deploy-0.3.5-py2.py3-none-any.whl" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "d82a9eeb0c2bd98df24ab05427199ac1", "sha256": "c25f487a6c9004433be6ceed44f6f3b0a27b7b174233afab2e3ecb8800952660" }, "downloads": -1, "filename": "flask_deploy-0.4.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "d82a9eeb0c2bd98df24ab05427199ac1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 21507, "upload_time": "2019-03-18T16:52:54", "url": "https://files.pythonhosted.org/packages/db/05/658c0bc714288061f1ab79900ccefd65a36fa5433371eef8912785c39b05/flask_deploy-0.4.0-py2.py3-none-any.whl" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "0eb1157413fdf97623f2c594b739c6df", "sha256": "fb395c1ab2c28f9a46a2b9ff301267a85fa68dce02f512b6756051bcf9ddb77b" }, "downloads": -1, "filename": "flask_deploy-0.4.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "0eb1157413fdf97623f2c594b739c6df", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 21511, "upload_time": "2019-03-18T20:20:41", "url": "https://files.pythonhosted.org/packages/2b/3c/26d1874e35fbedfcd1e5368e58442b7683c2327087ce95c66e9fcedc862f/flask_deploy-0.4.1-py2.py3-none-any.whl" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "ab54a5ead4eec92316f3284b35ebc5cc", "sha256": "c26fc7b8eaf09fa02df19c6dc4f064859c3d0be556bf37cf24bea06e7aa0987f" }, "downloads": -1, "filename": "flask_deploy-0.4.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "ab54a5ead4eec92316f3284b35ebc5cc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 21546, "upload_time": "2019-03-20T03:16:26", "url": "https://files.pythonhosted.org/packages/91/b9/e3bb2f9aa42ae163334a5c29a39aa432b7385b43d376c186f5801f3e36ac/flask_deploy-0.4.2-py2.py3-none-any.whl" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "f8db388c15a128f9e9a899f84025c5df", "sha256": "bdf2859a5f49357342e6911ba14808e729463ca26db795c034a0c07969accd00" }, "downloads": -1, "filename": "flask_deploy-0.4.3-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "f8db388c15a128f9e9a899f84025c5df", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 21545, "upload_time": "2019-05-19T01:04:40", "url": "https://files.pythonhosted.org/packages/91/41/e902880980f8a32ac161b32aecd3d14745c593732ea53524cb8dede84380/flask_deploy-0.4.3-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f8db388c15a128f9e9a899f84025c5df", "sha256": "bdf2859a5f49357342e6911ba14808e729463ca26db795c034a0c07969accd00" }, "downloads": -1, "filename": "flask_deploy-0.4.3-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "f8db388c15a128f9e9a899f84025c5df", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 21545, "upload_time": "2019-05-19T01:04:40", "url": "https://files.pythonhosted.org/packages/91/41/e902880980f8a32ac161b32aecd3d14745c593732ea53524cb8dede84380/flask_deploy-0.4.3-py2.py3-none-any.whl" } ] }