Skip to content
Snippets Groups Projects
Commit 44eb42fb authored by Matthieu Faure's avatar Matthieu Faure
Browse files

app.php: remove debug

parent 57f965d8
No related branches found
No related tags found
Loading
Pipeline #3960 failed
......@@ -17,7 +17,8 @@
class comptoir (
String $comptoir_user = 'comptoir',
# Stdlib::Absolutepath $comptoir_dir = '/home/comptoir/Comptoir-srv',
String $comptoir_dir = '/home/comptoir/Comptoir-srv', # TODO grab this info from the repos URL
String $comptoir_dir = '/home/comptoir/Comptoir-srv',
# TODO grab this info from the repos URL, use Stdlib::basename
Stdlib::Httpsurl $comptoir_repos_url = 'https://gitlab.adullact.net/Comptoir/Comptoir-srv.git',
String $comptoir_revision = 'master',
String $comptoir_db_user = 'comptoir',
......@@ -29,6 +30,8 @@ class comptoir (
# Inner variables
$_SQL_create_tables_and_procedure = 'config/SQL/COMPTOIR_DB_create_tables_and_procedures.sql'
$_file_app_php = "${comptoir_dir}/config/app.php"
$_file_comptoir_php = "${comptoir_dir}/config/comptoir.php"
# Grab source code
vcsrepo { $comptoir_dir:
......@@ -68,5 +71,14 @@ class comptoir (
timeout => 1200, # default value (300s) * 4
}
#
# Comptoir configuration: APP.PHP
-> Exec { 'Comptoir remove debug':
command => "sed -i -e \"s/\/\/COMPTOIR-DEBUG//\" $_file_app_php",
cwd => $comptoir_dir,
user => $comptoir_user,
environment => [ 'HOME=/home/comptoir' ],
}
# Comptoir configuration: COMPTOIR.PHP
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment