Skip to content
Snippets Groups Projects
Commit bc3c2861 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Merge branch 'auto-migrate' into 'devel'

skadereg: Migrate on VCS changes

See merge request !17
parents 5629e90b 439e1d84
No related branches found
No related tags found
2 merge requests!17skadereg: Migrate on VCS changes,!18Automatic migration on VCS changes
Pipeline #3731 passed
......@@ -136,6 +136,17 @@ class skadereg(
content => template("${module_name}/dotenv.erb"),
}
exec { 'artisan migrate':
command => 'php artisan migrate --force -n',
cwd => '/var/www/skadereg',
path => [ '/opt/rh/rh-php56/root/usr/bin' ],
refreshonly => true,
group => 'skadereg',
user => 'apache',
subscribe => Vcsrepo['/var/www/skadereg'],
}
class { '::mysql::server':
root_password => $mysql_password,
databases => {
......
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