Site Tools


Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
steps_to_implement_maintenance_page_in_performexa_production_site

Steps to add maintenance page in Performexa production deployment script
——————————————————————————————————
1. Add gem 'turnout', '~> 2.4' into Gemfile

2. bundle install

3. Add the Maintenance page file into project public directory with file name maintenance.html

4. Make the above changes into project file and commit into the svn

5. Do the deployment in the specific evironment

6. Add maintenance options(deploy:web:enable, deploy:web:disable) in /home/<appuser>/tincan

7. Open the runcap.sh file from the follwing location and do the below changes

 	cd /home/<appuser>/tincan
 	vi runcap.sh

8. In the printmenu() function add two more cases (ie) case 3 and case 4 to make the selection (Enable / Disable) for maintenance page

 Add the following statements below this statement "   echo "2). deploy:restart"   "
      echo "3). deploy:web:enable (Use this to remove maintenance page, all app servers are enabled)"
      echo "4). deploy:web:disable (Use this to install maintenance page, public access to all app servers is disabled)"
 Do the below change in the next line
 Initially it will be like this "  read -p 'Enter Cap Task number [1-2]: ' captask  ". It has to be changed like this  "read -p 'Enter     
 Cap Task number [1-4]: ' captask "

9. Add two below mentioned fuction to perform the site maintenance page operation

addMaintenenceMode()
{
		echo `pwd`
		cd /deploy/tincan/current
		echo `pwd`
		bundle exec rake maintenance:start allowed_ips="182.72.26.6"
}

In the addMaintenenceMode() function we are allowing the ipaddress “182.72.26.6” to access the site even though the site in maintenance mode because it is our public ip

removeMaintenenceMode()
{
		echo `pwd`
		cd /deploy/tincan/current
		echo `pwd`
		bundle exec rake maintenance:end
}

Save the file and exit

steps_to_implement_maintenance_page_in_performexa_production_site.txt · Last modified: 2018/08/31 16:16 (external edit)