-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnotes.txt
35 lines (26 loc) · 887 Bytes
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# How to use username instead of email for devise.
https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign-in-using-their-username-or-email-address
# Add admin to Devise
https://github.com/plataformatec/devise/wiki/How-To:-Add-an-Admin-role
# Notes for Strong Parameters
http://blog.sensible.io/2013/08/17/strong-parameters-by-example.html
# Install PostgresSQL command line
https://help.ubuntu.com/community/PostgreSQL
# To access postgres as root
su - postgres # CTRL-D to logout
psql postgres
# Might have to copy this to get gems installs to work
# from inside docker
HOME=/root
#
pull docker image
./create-dev-persistent.sh
./dattach bmu-dev
service postgresql start
cd /home/app/github/BMU
passenger start
# Whenever job scheduler
# tutorial
http://asciicasts.com/episodes/164-cron-in-ruby
# this line updates the crontab
whenever --update-crontab store