Giter Site home page Giter Site logo

maintenance_page's Introduction

maintenance_page

A page to show when the main DOAJ site is down.

Deployment

This is managed using git hooks. You'll need the server in your .ssh/config file, and the remote:

git remote add production cloo@doaj-maintenance-page-webhost:maintenance_page.git

You can only deploy the master branch. To do so, run the following command:

git push production master

i.e. you are pushing master to the production remote. This will run the hooks, and restart nginx for you.

Server configuration

You need a bare git repo on the host, called maintenance_page.git. This is created with git init --bare maintenance_page.git in the home directory.

Create the working tree directory where nginx will serve the files from and fix the permissions:

sudo mkdir /var/www/maintenance_page
sudo chown www-data:www-data /var/www/maintenance_page
sudo chmod -R 775 /var/www
sudo usermod -a -G www-data cloo

The post receive hook then needs to be created on the host, by copying deploy/hooks/post-receive to ~/maintenance_page.git/hooks/post-receive and chmod +x hooks/post-receive on the host. This will allow the script to run on deploy and copy the code to the correct work tree.

Afterwards, you can remove the copied hook and replace it with a symlink to the checked out hook (so you can update the hooks):

ln -sf /var/www/maintenance_page/deploy/hooks/post-receive hooks/post-receive
chmod +x hooks/post-receive

SSL Certificates

The nginx config expects an SSL certificate - this should be restored from a backup.

maintenance_page's People

Contributors

steven-eardley avatar amdomanska avatar

Stargazers

Nick Fn Blum avatar

Watchers

James Cloos avatar Richard Jones avatar  avatar Dom Mitchell avatar Ramakrishna Sakhamuru avatar Tom Olyhoek avatar  avatar  avatar Nick Fn Blum avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.