Code Monkey home page Code Monkey logo

clipd-backend-operations's Introduction

clipd-backend

Backend scripts and extras for clipd

Below are some short tutorials for editing the backend of clipd

Steps to backup the clipd Heroku PostgreSQL DB and restore it locally: Somewhat helpful reference: https://devcenter.heroku.com/articles/heroku-postgres-import-export

  1. Ideally take site down for maintanence
  2. open up a bash shell with the heroku command functioning locally
  3. enter w/o quotes: "heroku pg:backups:capture -a clipd"
  4. enter w/o quotes: "heroku pg:backups:download -a clipd"
  5. Make sure you're in the directory of latest.dump. Store it somewhere if appropriate.
  6. enter w/o quotes: "PGPASSWORD=rorodog pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d csgo_highlights latest.dump"
  7. Start server if previously shut down for maintanence

Steps to restore an instance to the Heroku instance from local instance:

  1. Ideally take site down for maintanence
  2. open up a windows cmd window
  3. in pgadmin, right click on DB and click Backup...
  4. Don't change any settings except filename, to the form "csgo_highlights_backup_MM_DD_YY.backup"
  5. Upload backup to AWS S3 Bucket
  6. Right click on file, click Make Public
  7. Make sure the S3 profile is public itself
  8. Click on the item and copy the URL looking like "https://csgo-highlights-db.s3.us-east-2.amazonaws.com/name.backup"
  9. enter w/o outer quotes in cmd: "pg:backups:restore "step7link" postgresql-convex-91631 -a clipd"
  10. enter w/o quotes to check if running properly: "heroku pg -a clipd"
  11. Start server if previously shut down for maintanence

Details for Reddit account: email - [email protected] username - clipd-official password - 72ED865568032

Details for Twitch account: email - [email protected] username - clipdofficial password - f;PB2p:kHG&L

Repo for downloading twitch clips: https://github.com/ihabunek/twitch-dl

clipd-backend-operations's People

Contributors

robbie-a-freeman avatar kaiergin avatar rye8111 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.