Table of Contents

Performance App server - performance.exphosted.com

Host Information

Hostname         : performance.exphosted.com
IP address       : 159.203.64.241
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 rbenv + Gem (libraries) v2.4.8
Ruby Gems   : capistrano 3.4.0 (Patched checked out from Uday's GitHub)
              backports (3.6.6)
              bigdecimal (1.2.6)
              bundle (0.0.1)
              bundler (1.10.6)
              capistrano-ext (1.2.1)
              capistrano-log_with_awesome (0.0.2)
              capistrano-passenger (0.1.1)
              capistrano-rbenv (2.0.3)
              capistrano-stats (1.1.1)
              colorize (0.7.7)
              god (0.13.6)
              highline (1.7.8)
              i18n (0.7.0)
              io-console (0.4.3)
              json (1.8.1)
              minitest (5.4.3)
              net-scp (1.2.1)
              net-ssh (3.0.1)
              passenger (5.0.20)
              power_assert (0.2.2)
              psych (2.0.8)
              rack (1.6.4)
              rake (10.4.2)
              rdoc (4.2.0)
              specific_install (0.3.1)
              sshkit (1.7.1)
              test-unit (3.0.8)

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 /etc/init.d/mysqld {start|stop|restart|status}
Ejabberd                         : sudo /etc/init.d/ejabberd {start|stop|restart|status}
Webserver                        : sudo /etc/init.d/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]: 1

                                   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)