sinclairtarget / paysymmetry

PaySymmetry web app

Home Page:http://app.paysmmetry.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PaySymmetry

Web app portion of paysymmetry.com.

Running Locally

  1. Make sure you have gem installed. gem is a package manager for Ruby. If it's not already on your computer, you can get it here. An alternative is to install Ruby via Homebrew.

  2. Make sure you have Bundler (bundle) installed. You can install Bundler via gem:

     $ gem install bundler
    
  3. Run bundle install in the root folder of the project. This will install all the gems the project depends on.

  4. Ensure that you've installed MySQL and have the daemon process running. Then enter:

     $ rake db:setup
    

This will set up a local database for the app to use.

  1. To start the server, run:

     $ bundle exec rails server
    

Running with RAILS_ENV=production

  1. Make sure that you have a .rbenv-vars file in the root folder. Below is an example of what that file might look like:
GMAIL_PASSWORD=p@ssword!92
PAYSYMMETRY_DATABASE_PASSWORD=lHne884
SECRET_KEY_BASE=ff980s8890s79g99d98dkkk2323k5hk23jk4k4j

The file sets environment variables that the app needs to run.

  1. Run rake assets:precompile to precompile all static assets.

  2. Start the server with:

     $ RAILS_ENV=production bundle exec rails server 
    

Deployment

Again, you will need to have a .rbenv-vars file in the root folder. During deployment the file will get copied up to the production server(s).

You will also need the SSH access to the production server(s).

$ bundle exec cap production deploy

About

PaySymmetry web app

http://app.paysmmetry.com


Languages

Language:Ruby 66.7%Language:HTML 16.9%Language:CSS 12.4%Language:CoffeeScript 3.2%Language:JavaScript 0.8%