- GitHub for code
- Render blueprint specified by render.yaml
- Postgres
- Redis
- Linked to GitHub repo
- Add environment variables for
PYTHON_VERISON=3.9.7
,ENVIRONMENT=live
, andSECRET_KEY
- Cloudflare for SSL and CNAME pointing to Render app domain
- Force SSL with a Cloudflare rule
- Namecheap for the domain
- Point nameservers to Cloudflare
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://userstyles.org/styles/133201/hacker-news-readable */ | |
/* reset */ | |
body, td, table, input, textarea, .pagetop, * | |
{ | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
font-weight: 400; | |
-webkit-font-smoothing: antialiased; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
die () { | |
echo >&2 "$@" | |
exit 1 | |
} | |
[ "$#" -eq 1 ] || die "Database name argument is required" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: python manage.py collectstatic --noinput && bin/start-pgbouncer bin/start-nginx gunicorn -c gunicorn.conf.py project.wsgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.poetry] | |
name = "" | |
version = "0.1.0" | |
description = "" | |
authors = [""] | |
[tool.poetry.dependencies] | |
python = "^3.9" | |
Django = ">3" | |
django-fbv = "<1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.minimap.enabled": false, | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[html]": { | |
"editor.insertSpaces": true, | |
"editor.tabSize": 2, | |
"editor.defaultFormatter": "HookyQR.beautify" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
From https://ackee.electerious.com/ | |
--> | |
<style> | |
.heart { | |
width: 16px; | |
height: 16px; | |
fill: #73fac8; | |
margin: 0 4px -1px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document domain("goatcounter.com"), domain("stats.arp242.net") { | |
html, body { | |
background-color: white; | |
} | |
.page { | |
padding-top: 4em; | |
box-shadow: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# @Author: José Sánchez-Gallego (gallegoj@uw.edu) | |
# @Date: 2019-12-18 | |
# @Filename: create_setup.py | |
# @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause) | |
# https://github.com/sdss/flicamera/blob/master/create_setup.py | |
# This is a temporary solution for the fact that pip install . fails with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.apps import AppConfig | |
from django.conf import settings | |
from django.utils.autoreload import autoreload_started | |
class Config(AppConfig): | |
name = "random_app_name" | |
def ready(self): | |
autoreload_started.connect(watch_env) |