https://github.com/app-generator/deploy-automation-render
Open-Source Wrapper over the Render Platform API | AppSeed
https://github.com/app-generator/deploy-automation-render
appseed ci-cd deployment
Last synced: 12 months ago
JSON representation
Open-Source Wrapper over the Render Platform API | AppSeed
- Host: GitHub
- URL: https://github.com/app-generator/deploy-automation-render
- Owner: app-generator
- License: other
- Created: 2022-10-12T08:17:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-10T05:47:40.000Z (over 3 years ago)
- Last Synced: 2025-04-06T18:12:46.958Z (12 months ago)
- Topics: appseed, ci-cd, deployment
- Language: Python
- Homepage: https://www.youtube.com/watch?v=RRbmOhTzkYo
- Size: 66.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# [Render API Wrapper](https://www.youtube.com/watch?v=RRbmOhTzkYo) - `Python`
Python wrapper for [Render](https://render.com/) Deployment API - actively supported by **[AppSeed](https://appseed.us/)**.
> `Roadmap` - see [VIDEO Presentation](https://www.youtube.com/watch?v=RRbmOhTzkYo)
| Item | Python | Info |
| --- | --- | --- |
| Deploy Static Site | ✅ | [docs](./docs/deploy-static.md) |
| Deploy Web Service `Flask` | ✅ | [docs](./docs/deploy-flask.md) |
| Deploy Web Service `Django` | ✅ | [docs](./docs/deploy-django.md) |
| Deploy Web Service `NodeJS` | ✅ | [docs](./docs/deploy-nodejs.md) |
| --- | --- | --- |
| `AppSeed Specific` | --- | --- |
| Deploy `Flask API` Service | ✅ | [docs](./docs/deploy-flask-api.md) |
| Deploy `Django API` Service | ✅ | [docs](./docs/deploy-django-api.md) |
| Deploy `NodeJS API` Service | ✅ | [docs](./docs/deploy-nodejs-api.md) |
| Deploy `FullStack` Service | ✅ | [docs](./docs/deploy-fullstack.md) |
## How to use it
> Install modules
```bash
$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt
```
### Export Variables
> Unix / MacOs `environment`
```bash
$ export RENDER_API_KEY= # mandatory
$ export RENDER_OWNER_ID= # optional
$ export RENDER_BUILDER='yarn' # optional, , defaults to NPM
$ export DEBUG=1 # enables verbose output
```
> Windows CMD `environment`
```bash
$ set RENDER_API_KEY= # mandatory
$ set RENDER_OWNER_ID= # optional
$ set RENDER_BUILDER='yarn' # optional, , defaults to NPM
$ set DEBUG=1 # enables verbose output
```
> Windows Powershell `environment`
```bash
$ $env:RENDER_API_KEY = "" # mandatory
$ $env:RENDER_OWNER_ID = "" # optional
$ $env:RENDER_BUILDER = "yarn" # optional, , defaults to NPM
$ $env:DEBUG = "1" # enables verbose output
```
### EXEC API
| Item | Info | Sample Output | HELP |
| --- | --- | --- | --- |
| `python deployer.py` | CLI Help | `Usage: runner.py COMMAND ARGS` | - |
| `python deployer.py check` | Print API_KEY | `rnd_TgN***` | - |
| `python deployer.py all_owners` | Print all owners | `['usr-cct***', 'tea-cct***']` | - |
| `python deployer.py owner` | Get First Owner | `rnd_TgN***` | - |
| --- | --- | --- | - |
| `python deployer.py nodejs REPO_URL` | Deploy NodeJS | `> Deploy [dep-cdg***]` | - |
| --- | --- | --- | - |
| `python deployer.py django REPO_URL` | Deploy Django | `> Deploy [dep-cdg***]` | - |
| --- | --- | --- | - |
| `python deployer.py flask REPO_URL` | Deploy Flask | `> Deploy [dep-cdg***]` | - |
| --- | --- | --- | - |
| `python deployer.py static REPO_URL` | Deploy React, Vue | ` > Deploy ID [dep-cdg***]` | - |
| --- | --- | --- | - |
| `python deployer.py nodejs_api ` | Repo [NodeJS API](https://github.com/app-generator/api-server-nodejs) | `> Deploy [dep-cdg***]` | [docs](./docs/deploy-nodejs-api.md) |
| `python deployer.py flask_api ` | Repo [Flask API](https://github.com/app-generator/api-server-flask) | `> Deploy [dep-cdg***]` | [docs](./docs/deploy-flask-api.md) |
| `python deployer.py django_api ` | Repo [Django API](https://github.com/app-generator/api-server-django) | `> Deploy [dep-cdg***]` | [docs](./docs/deploy-django-api.md) |
## Flask Sample
### Flask Star Admin
> In order to have a successful deploy, the environment should contain `API_KEY` and `OWNER_ID` (credit card attached)
```bash
$ python.exe .\deployer.py flask https://github.com/app-generator/flask-star-admin
```
In the above sample, "run:app" is used as `WSGI` entry point.
---
[Render API Wrapper](https://www.youtube.com/watch?v=RRbmOhTzkYo) - Free Tool provided by [AppSeed](https://appseed.us/)