Dump existing data:
python3 manage.py dumpdata > datadump.json
Change settings.py to Postgres backend.
Make sure you can connect on PostgreSQL. Then:
#include <stdio.h> | |
#include <linux/version.h> | |
#include <sys/utsname.h> | |
/* | |
* from rhel7's linux/version.h: | |
* #define LINUX_VERSION_CODE 199168 | |
* #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) | |
*/ |
This guide shows how to setup a production environment for a Django application using PostgreSQL as database, Gunicorn as application server and Nginx as http server using Ubuntu Server 14.04 as Operative System.
Install PostgreSQL and Nginx using:
sudo apt-get install -y postgresql-9.5 postgresql-contrib-9.5 postgresql-server-dev-9.5 nginx git circus make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils python-setuptools
// Compiled by Igor Shults | |
// Last Updated: July 23, 2020 | |
GRAILS GROOVY SOURCE | |
4.1.0 2.5.14 https://github.com/grails/grails-core/blob/v4.1.0/gradle.properties | |
4.0.4 2.5.6 | |
4.0.3 2.5.6 | |
4.0.2 2.5.6 | |
4.0.1 2.5.6 | |
4.0.0 2.5.6 https://github.com/grails/grails-core/blob/v4.0.0/build.gradle |
install the normal way:
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb & > /dev/null
sudo apt-get update
sudo apt-get upgrade
from threading import Timer | |
def debounce(wait): | |
""" Decorator that will postpone a functions | |
execution until after wait seconds | |
have elapsed since the last time it was invoked. """ | |
def decorator(fn): | |
def debounced(*args, **kwargs): | |
def call_it(): |