Web app portion of paysymmetry.com.
-
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. -
Make sure you have Bundler (
bundle
) installed. You can install Bundler viagem
:$ gem install bundler
-
Run
bundle install
in the root folder of the project. This will install all the gems the project depends on. -
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.
-
To start the server, run:
$ bundle exec rails server
- 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.
-
Run
rake assets:precompile
to precompile all static assets. -
Start the server with:
$ RAILS_ENV=production bundle exec rails server
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