-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflow.sh
50 lines (28 loc) · 1.24 KB
/
flow.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
setenv Project cortado
setenv Location ~/work/zeghetmar
cd $Location
rails new $Project
# http://stackoverflow.com/questions/16455801/ruby-on-rails-make-slim-the-default-template
cd $Location/$Project
echo "gem 'slim-rails'\n" >> Gemfile
sed -i "/config.active_record.raise_in_transactional_callbacks = true/a \\n config.generators do |g|\n g.template_engine :slim\n end\n" config/application.rb
sed -i '/therubyracer/s/^# //' Gemfile
bundle install --without production
git init
git add -A
git commit -m "Initialize repository"
git remote add origin [email protected]:bglass/cortado.git
# git push --force --set-upstream origin master
git push -u origin --all
# git config --global credential.helper cache
# git config --global credential.helper 'cache --timeout=3600'
rails g scaffold order
rails g scaffold product name:string
rails g scaffold person name:string feature:string
rails g scaffold like person_id:integer product_id:integer count:integer
rails g scaffold choice order_id:integer person_id:integer product_id:integer
rails g scaffold contact person_id:integer person_id:integer count:integer
bundle exec rake db:migrate
rails server -b localhost -p 3000
rails generate controller StaticPages jqm
group:text drinks:text