Skip to content
Snippets Groups Projects
Commit 1dc52e29 authored by Adrian Palmquist's avatar Adrian Palmquist
Browse files

Merge branch 'devel' into 'production'

Automatic migration on VCS changes

See merge request !18
parents 0eed9bea bc3c2861
No related branches found
No related tags found
1 merge request!18Automatic migration on VCS changes
Pipeline #3730 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