forked from ricodigo/shapado
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL_ON_PRODUCTION
67 lines (41 loc) · 1.64 KB
/
INSTALL_ON_PRODUCTION
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
== SERVER SIDE
1. add a user with sudo permissions
sudo adduser deploy
2. edit sudo settings
$ sudo visudo
and add:
3. configure and upload config/shapado.yml to /etc/shapado.yml
---------------- copy from here -------------
Defaults env_keep += "RAILS_ROOT"
Defaults secure_path = "/usr/local/rvm/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
app ALL=(ALL) NOPASSWD: ALL
---------------------------------------------
NOTE: you can revoke sudo permissions after installing the application
== CLIENT SIDE
1. Download the sources:
$ git clone git://gitorious.org/shapado/shapado.git
$ cd shapado/
2. Configure the application
$ cp config/shapado.sample.yml config/shapado.yml
$ cp config/mongoid.sample.yml config/mongoid.yml
edit shapado.yml
3. Install dependencies
$ bundle install
4. Install required Gems
$ sudo gem install capistrano ricodigo-capistrano-recipes
$ cp config/deploy.rb.sample config/deploy.rb
edit and configure config/deploy.rb (usually you just need to change the roles)
5. Install server dependencies
$ ricodigo-install-server <server ip> <deploy user>
NOTE: if you entered user/password for mongodb you have to add it on server:
$ mongo --eval 'db.addUser("<THE USER>","<THE PASSWORD>", false)' shapado-production
6. Setup your deployment server
$ cap production deploy:setup
7. Deploy
$ cap production bootstrap
$ cap production bluepill:init
$ cap production magent:setup
$ cap production magent:init
$ cap production websocket:setup
$ cap production websocket:init
$ cap production deploy