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
Branches
No related tags found
No related merge requests found
...@@ -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.
Please register or to comment