Skip to content

Latest commit

 

History

History
70 lines (42 loc) · 1.83 KB

README.md

File metadata and controls

70 lines (42 loc) · 1.83 KB

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.