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

skadereg: Migrate on VCS changes

parent 28db5977
No related branches found
No related tags found
2 merge requests!17skadereg: Migrate on VCS changes,!18Automatic migration on VCS changes
Pipeline #3732 passed
...@@ -136,6 +136,17 @@ class skadereg( ...@@ -136,6 +136,17 @@ class skadereg(
content => template("${module_name}/dotenv.erb"), 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': class { '::mysql::server':
root_password => $mysql_password, root_password => $mysql_password,
databases => { 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