Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ks6088ts/djangosite
Web application written in Django
https://github.com/ks6088ts/djangosite
Last synced: 28 days ago
JSON representation
Web application written in Django
- Host: GitHub
- URL: https://github.com/ks6088ts/djangosite
- Owner: ks6088ts
- License: apache-2.0
- Created: 2018-12-31T09:08:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:21:36.000Z (11 months ago)
- Last Synced: 2024-05-09T14:25:03.861Z (6 months ago)
- Language: HTML
- Size: 1.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# djangosite
Web application written in Django[![travis-ci](https://api.travis-ci.org/ks6088ts/djangosite.svg?branch=master)](https://api.travis-ci.org/ks6088ts/djangosite.svg?branch=master)
# Setup environment on Sakura VPS
1. Install CentOS7 on Sakura VPS
1. Generate SSH keys (like $ ssh-keygen -t rsa)
1. Paste public key to GitHub settings
1. Clone the repo from VPS server on /home directory
1. Run setup scripts($ ./scripts/setup_sakura.sh)# Backup databases
## Production
Dump the current database to a json file
* ./manage.py dumpdata products --format=json --indent=2 > products.json* Check if media directory exists
## Local
Download json database file and media directory from remote production to local
* scp user@ip_addr:/path/to/products.json /path/to/local
* scp -r user@ip_addr:/path/to/media /path/to/localInject products database to local
* ./manage.py loaddata products