Skip to content

Cloudxtreme/pastebin-2

 
 

Repository files navigation

Pastebin

Build Status

Basic Setup

  1. Check out the source code.

     git clone https://github.com/ryanc/pastebin.git
     cd pastebin
    
  2. Install Composer

     curl -s http://getcomposer.org/installer | php
    
  3. Install the project dependencies.

     php composer.phar install
    
  4. Bootstrap the database schema.

     sqlite3 db/pastebin.db < sql/schema.sql
    
  5. Assign permissions to folders that need to be writable to the web server.

     # For Debian/Ubuntu
     chown -R www-data cache logs db
     # For Redhat/CentOS/Fedora
     chown -R apache cache logs db
    
  6. Configure your web server. Sample configuration files are available for both Apache and Nginx.

Quick Setup

This setup is ideal for development since it uses the vagrant configuration that has been committed to this Git repository. This requires that you have VirtualBox and Vagrant installed.

  1. Check out the source code.

     git clone https://github.com/ryanc/pastebin.git
     cd pastebin
    
  2. Start Vagrant VM.

     vagrant up
    
  3. Bootstrap the database schema.

     sqlite3 db/pastebin.db < sql/schema.sql
    
  4. SSH into VM.

     vagrant ssh
     cd /vagrant
    
  5. Install Composer

     curl -s http://getcomposer.org/installer | php
    
  6. Install the project dependencies.

     php composer.phar install
    
  7. Visit http://localhost:8080 in your web browser.

About

A pastebin written using the Silex framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 46.4%
  • PHP 43.0%
  • HTML 4.8%
  • Shell 3.9%
  • Puppet 1.6%
  • ApacheConf 0.2%
  • Makefile 0.1%