django:devo.ps 的简单 django 存储库

  • Q2_193872
    了解作者
  • 10.3KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-09 09:45
    上传日期
姜戈 在上为应用程序构建和部署一个简单的设置。 安装 只需使用以下链接: 分叉存储库后,在 devo.ps 中打开它,系统将提示您进行一些设置,包括应用程序代码的 Git URL。 要部署您的应用程序,您需要导航到存储库的任务页面并手动运行该任务(单击“构建 Django 应用程序”任务右侧的“播放”图标)。 盒子里有什么东西? 此设置包含一个服务器( nodes/django.yml ),带有Nginx 、 Python 、 uWSGI (带有emperor)和MySQL 5.5 (带有“django”用户和“django”数据库) 我们还包含了一个任务( tasks/build-django.yml ): 从 GitHub 克隆您的 django 应用(默认设置为 )。 安装在requirements.txt文件中定义的所有应用程序依赖项 运行构建脚本 ( scripts/
django-master.zip
  • django-master
  • nodes
  • django.yml
    1.1KB
  • scripts
  • install_local_py.sh
    999B
  • tasks
  • backup-django.yml
    499B
  • build-django.yml
    1.2KB
  • devops.yml
    820B
  • README.md
    1.7KB
  • django-logo.png
    5.8KB
内容介绍
# Django Build and deploy a simple setup for a [Django](https://www.djangoproject.com) app on [devo.ps](http://devo.ps). ## Install Simply use the link below: [![Fork on devo.ps](https://app.devo.ps/assets/images/fork.png)](https://app.devo.ps/#/fork?git_url=https://github.com/devops-community/django) Once you've forked the repository, open it in devo.ps and you will be prompted for a few settings, including the Git URL for the code of your application. To deploy your app, you will need to navigate to the tasks page of the repo and run the task manually (click on "play" icon, right of the "Build the Django app" task). ## What's in the box? This setup contains one server (`nodes/django.yml`) with **Nginx**, **Python**, **uWSGI** (with emperor) and **MySQL 5.5** (with a "django" user and a "django" database) We have included as well a task (`tasks/build-django.yml`) that: 1. Clone your django app from GitHub (set to [JuhaS/django-sample-app](https://github.com/JuhaS/django-sample-app) by default). 1. Install all your application dependencies defined in your `requirements.txt` file 1. Run a build script (`scripts/install_local_py.sh`) that will: 1. Write the configuration file (to connect it to MySQL) 1. Sync the database using the `manage.py` script 1. Setup the uWSGI application (vassal) The current repo provides a very simple setup. Hack at will! ## Questions? If you have any question, come ask us on the [devo.ps chat](https://www.hipchat.com/gyHEHtsXZ) or shoot us an email at [help@devo.ps](mailto:help@devo.ps) (though, you should really just [ask us in the chat](https://www.hipchat.com/gyHEHtsXZ)). # Reference - [Nodes in devo.ps](http://docs.devo.ps/manual/nodes) - [Tasks in devo.ps](http://docs.devo.ps/manual/tasks)
评论
    相关推荐