Table of Contents

Performance App server - devtalent02.exphosted.com

Host Information

Hostname         : devtalent02.exphosted.com
IP address       : 192.241.244.237
Hosted on        : Digital Ocean
App user Account : expdev01

Tools & Services on the server

Web server  : Nginx
Middle-Ware : Nginx + Passenger (Ruby Application Server)
Database    : Mysql 5.6 community version
Chat server : Ejabberd 15.07
Ruby        : ruby v2.2.3 on rvm + Gem (libraries) v2.4.8
Ruby Gems   : capistrano 3.4.0 (Patched checked out from Uday's GitHub)
              bigdecimal (1.2.6)
              bundler (1.10.6)
              bundler-unload (1.0.2)
              capistrano-bundler (1.1.4)
              capistrano-ext (1.2.1)
              capistrano-log_with_awesome (0.0.2)
              capistrano-passenger (0.1.1)
              capistrano-rails (1.1.1)
              capistrano-rvm (0.1.2)
              capistrano-stats (1.1.1)
              color-generator (0.0.4)
              colorize (0.7.7)
              daemons (1.2.3)
              debug_inspector (0.0.2)
              erubis (2.7.0)
              execjs (2.6.0)
              gem-wrappers (1.2.7)
              god (0.13.6)
              highline (1.7.8)
              i18n (0.7.0)
              io-console (0.4.3)
              jquery-turbolinks (2.1.0)
              jquery-ui-rails (5.0.5)
              json (1.8.3, 1.8.1)
              multi_json (1.11.2)
              mysql2 (0.3.20)
              net-ldap (0.11)
              net-scp (1.2.1)
              net-ssh (3.0.1)
              nokogiri (1.6.6.2)
              passenger (5.0.20)
              psych (2.0.8)
              rack (1.6.4)
              rack-test (0.6.3)
              rake (10.4.2, 10.4.1)
              rdoc (4.2.0)
              ref (2.0.0)
              rmagick (2.15.4)
              rubygems-bundler (1.4.4)
              rvm (1.11.3.9)
              specific_install (0.3.1)
              sshkit (1.7.1)

How to start stop services

Its recommended to login as application user (expdev01) : su - expdev01 (remember to use '-' to load all environmental variables)

God (for Application Monitoring) : /deploy/systasks/god.sh {start|stop}
Mysql                            : sudo service mysql {start|stop|restart|status}
Ejabberd                         : sudo service ejabberd {start|stop|restart|status}
Webserver                        : sudo service nginx {start|stop|restart|status}
Restart Application              : passenger-config restart-app /deploy/performance
Deployment Script                : cd ~/performance/ && ./runcap
                                   Select Target environment
                                   1). Staging
                                   2). Development
                                   3). Production
                                   Enter target environment number [1,2]: 2

                                   Select Cap Task
                                   1). deploy (Idempotent - Cold + Incremental)
                                   2). deploy:restart
                                   Enter Cap Task number [1-2]: 
                                   ..........................................

Special Note on editing configuration file

If you are planning to configure the ejabberd server (ejabberd.yml) then please login as Ejabberd application user (ejabberd)