A plugin for django-simple-deploy, supporting deployments to seenode.
Project description
dsd-seenode
A plugin for deploying Django projects to seenode, using django-simple-deploy.
For full documentation, see the documentation for django-simple-deploy.
Current status
This plugin is in a pre-1.0 development phase. If you use it and want to share feedback, please feel free to open an issue.
Configuration-only deployment
- Configure your project, and push it to a GitHub repository:
- Install
dsd-seenode, adddjango_simple_deploytoINSTALLED_APPS, and runmanage.py deploy:
$ pip install dsd-seenode # Add django_simple_deploy to INSTALLED_APPS. $ python manage.py deploy
- At this point, your project will be configured for deployment to seenode. You can see all the changes that were made during the configuration process by running
git statusandgit diff. When you're satisfied with the changes, commit them.
$ git add . $ git commit -m "Configured for deployment to seenode."- Push your project to a GitHub repository.
- Install
- Create a database
- From your seenode dashboard, create a database. (I've tested this with Postgres, but MySQL should work as well.)
- In the dashboard page for your database, go to the Connection tab, and click URI in the dropdown. Copy the database URI; you'll need it in a moment.
- Create a web service
- From your seenode dashboard, create a Web service.
- Connect the Web service to your project's GitHub repository. (If this is your first deployment to seenode, you'll need to give seenode permission to find this repository. I didn't see any red flags in the permissions requested; if you do, please open an issue and share your concerns.)
- Set Build command to:
./build.sh - Set Start command to:
gunicorn <project-name>.wsgi --bind 0.0.0.0:80(Here,<project-name>is the name that you used when runningdjango startproject. It's the name of the folder where wsgi.py is saved.) - Set Port to:
80- Add the following block to Environment variables. Set your own secret key, and paste the database URI you copied from your dashboard earlier for
DATABASE_URL:
- Add the following block to Environment variables. Set your own secret key, and paste the database URI you copied from your dashboard earlier for
ON_SEENODE=1 DEBUG=False SECRET_KEY=<secret-key> DATABASE_URL=<database-uri>
- Click Continue.
- Choose a pricing tier, and click Start free trial, or Create instance. Your project should start to deploy automatically.
- Open your deployed project by clicking the three dots next to your web service and click Open service URL. Or, in your Web service dashboard go to Domains, and click under Default domain.
Destroying your project
If this was a practice or test deployment and you want to destroy your remote resources:
- Go to Web service > Settings > Delete service
- Go to Database service > Settings > Delete service
Remember to destroy both services.
Helpful seenode docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dsd_seenode-0.2.0.tar.gz.
File metadata
- Download URL: dsd_seenode-0.2.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bac2a4df642c23742440c452c77d16d4c5b9fbc0bf7ea80e7f350e6b4c2ce048
|
|
| MD5 |
460c387d7dcb98d01d6d920990ba0711
|
|
| BLAKE2b-256 |
3802c3136c6ec000ef442448aa65e92847cd3c77e1d4939ea5789f6080997f8a
|
File details
Details for the file dsd_seenode-0.2.0-py3-none-any.whl.
File metadata
- Download URL: dsd_seenode-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04671d830a7ff5da881365d656440ca0896c7dbbea9ea71c3897479b3a755188
|
|
| MD5 |
5dc4d8ec8be2206c6c89555f1a1154b0
|
|
| BLAKE2b-256 |
e3e92d51cd8072eaa7153191785a3987b7302371ee13a514766ca638dae0271d
|