-
Put
maintenance.html
into your root directory -
Open
.htaccess
file -
Insert this block in the first line of the file
ErrorDocument 503 /maintenance.html <IfModule mod_rewrite.c>
RewriteEngine On
set :shared_files, [app_path + "/config/parameters.yml"] | |
namespace :symfony do | |
namespace :configure do | |
def shared_parameters_path | |
"#{shared_path}/#{app_path}/config/parameters.yml" | |
end | |
def app_parameters_path | |
"#{latest_release}/#{app_path}/config/parameters.yml" |
# This custom task for deploying a Symfony 2 application is set to run after deploy:setup | |
# is executed. It interactively ask a user for database details to create a parameters.ini | |
# thus avoiding having to manually on to the server and create it | |
# | |
# Helper function from http://stackoverflow.com/a/1662001/1041885 | |
# | |
# Interactive parameter.ini generation adapted from http://adurieux.blogspot.co.uk/2011/10/using-capistrano.html | |
# ... | |
# ... Your deployment settings/tasks |
after "deploy:restart", "deploy:cleanup" | |
after "deploy:setup", "symfony:setup:parameters_init" | |
# Clear the cache before the cache:warmup task is run. The cache directory is | |
# shared, that way setting ACL's only happens once and we avoid the use of | |
# sudo | |
before 'deploy:finalize_update', 'symfony:cache:remove' | |
namespace :symfony do | |
namespace :cache do |
#!/bin/bash | |
# | |
# INSTALL | |
# ------- | |
# 1.) Create directory structure | |
# <base_dir> | |
# <base_dir>\bin | |
# <base_dir>\etc | |
# <base_dir>\log | |
# <base_dir>\rrd |
#!/usr/bin/env php | |
<?php | |
if (count($argv) < 3) { | |
echo <<<USAGE | |
Usage: genshadow.php salt password | |
USAGE; | |
exit(0); | |
} |
#!/bin/sh | |
# Substitute your IPs as required | |
for var in 200 201 202 203 | |
do | |
curl -X POST -u admin:gocoax --max-time 10 http://192.168.1.$var/ms/1/0xb00 | |
done |
name: Flightcontrol Webhook Deployment | |
env: | |
DEPLOYMENT_URL: "" | |
on: workflow_dispatch | |
jobs: | |
backend-deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 25 | |
steps: |