Git Product home page Git Product logo

guest20 / pastepm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jdiez17/pastepm

0.0 2.0 0.0 1004 KB

Beautiful paste service

Python 6.19% JavaScript 14.92% CSS 0.85% HTML 0.43% ApacheConf 2.82% AppleScript 1.34% Arduino 0.01% AutoHotkey 0.01% Shell 2.75% C++ 8.71% C 51.50% Cuda 0.09% CoffeeScript 3.39% Dart 0.02% Pascal 0.02% Emacs Lisp 0.01% Forth 0.01% Groovy 0.01% Max 1.10% Java 5.86%

pastepm's Introduction

paste.pm

Paste.pm is a minimalistic code sharing website written in Python.

Installation

To install paste.pm, you should create a virtualenv and install the requirements there.

$ virtualenv pastepm --no-site-packages

Then, activate the virtualenv and install the requirements.

$ cd pastepm && source bin/activate
$ pip install -r requirements.txt

After that, you should populate config.ini with your details. You will need to create a database to use psate.pm. When you have config.ini in place, creating the database is as simple as:

$ python create-db.py

Deployment

You can deploy your paste.pm instance however you like; I personally use gunicorn with supervisord. Here is my supervisor config file:

[program:paste]
command=/home/service/webapps/paste/bin/gunicorn app:app -b 127.0.0.11:8000
directory=/home/service/webapps/paste
user=service
autorestart=true

And nginx acts as a reverse proxy:

server {
        listen 80;
        server_name paste.pm;

        location / {
                proxy_pass http://127.0.0.11:8000/;
        }
}

pastepm's People

Contributors

jdiez17 avatar

Watchers

 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.