8000 GitHub - alyssadev/sprunge: command line pastebin for google appengine
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from mxroute/sprunge

command line pastebin for google appengine

Notifications You must be signed in to change notification settings

alyssadev/sprunge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command line pastebin for google app-engine, in use at pb.aly.pet. Based on work by beledouxdenis and mxroute.

Install

  • Install the gcloud CLI.
    • sudo apt install google-cloud-cli google-cloud-cli-app-engine-python
  • Run gcloud init to get started
    • gcloud init
  • Configure sprunge
    • git clone https://github.com/alyssadev/sprunge && cd sprunge
    • vim main.py to update PROJECT_ID and URL
    • export SPRUNGE_TOKEN="Bearer $(openssl rand -hex 16)" && echo $SPRUNGE_TOKEN
    • gcloud secrets create sprunge-token --data-file=- --replication-policy=automatic <<<$SPRUNGE_TOKEN
  • Run locally
    • gcloud auth application-default login
    • virtualenv .env
    • source .env/bin/activate
    • pip3 install -r requirements.txt
    • flask --app main run
  • Deploy for testing
    • gcloud app deploy --no-promote
  • Deploy for production
    • gcloud app deploy

About

command line pastebin for google appengine

Resources

Stars

Watchers

Forks

Languages

  • Python 100.0%
0