Receive in-home therapy from the best clinical psychologists of your community at your convenience.
- Stripe: [email protected]
- Segment.io: [email protected]
- Heroku
This application requires:
- Ruby 2.2.0
- Rails 4.2.0
- Postgres 9.x
Most likely, it will be something like:
- Install
brew
- Install RVM:
curl -L https://get.rvm.io | bash -s stable
- Install Ruby 2.2 (using RVM):
rvm install 2.2.0
- Install Rails 4.2:
gem install rails -v 4.2.0 --no-ri --no-rdoc
- Install bundler:
gem install bundler
- Install Postgress. (Careful: not through homebrew)
- Configure your classpath for Postgress. Add something like this to your
.bashrc
:export PATH="$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin"
. Otherwise, Postgress commands likecreateuser
won't be found
Here's a very useful guide to start your setup from scratch: Install Rails or Installing Rails.
./script/bootstrap
- Have a look at
config/secrets.yml
for admin user/passwords.
rails s
- Open
http://localhost:3000
We use heroku, so use this guide to setup your account.
Add the heroku remote heroku git:remote -a homegrit-web-development
to be able to push to our production
today. Then, git push heroku master
will do the rest.
Open the logs with heroku logs
(or with papertrail heroku addons:open papertrail
).
In the near future, we should setup a staging
machine using this guide, and be able to promote.
- Add this config vars:
heroku config:add \
MAILCHIMP_API_KEY="" \
MAILCHIMP_LIST_ID="" \
ADMIN_NAME="" \
ADMIN_EMAIL="" \
ADMIN_PASSWORD="" \
MANDRILL_USERNAME="" \
MANDRILL_PASSWORD="" \
DOMAIN_NAME="" \
STRIPE_API_KEY="" \
STRIPE_PUBLISHABLE_KEY="" \
SECRET_KEY_BASE=""
git push heroku master
heroku run rake db:migrate db:seed
- Scale properly
If the dynos crashed for whatever reason, you can force restart them manually: heroku ps:restart
.
- Kill the server and any open consoles
rake db:reset
rake db:create db:migrate db:seed
rails g migration AddProjectAndOrganizationToPointTransactions
rake db:migrate
- Optionally:
rake db:rollback
andrake db:migrate
again, just to make sure rollbacks work rake db:reset
All of them: rake
heroku run bundle exec rails c
- Forked from RailsApps