Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

disable_production_scripts.sh

vishalseshagiri edited this page Oct 3, 2017 · 2 revisions
#!/bin/bash

sudo service nginx stop
sudo service supervisor stop
rm config/nginx.conf
rm config/supervisor.conf
tmp=$(mktemp)
cat sites/common_site_config.json | jq '.serve_default_site= false' > "$tmp" && mv "$tmp" sites/common_site_config.json
tmp=$(mktemp)
cat sites/common_site_config.json | jq '.restart_supervisor_on_update= false' > "$tmp" && mv "$tmp" sites/common_site_config.json
Clone this wiki locally