Skip to content

Commit 4678972

Browse files
author
Benjamin Calef
committed
Merge branch 'develop'
2 parents 3771ce2 + 81e8592 commit 4678972

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Vagrantfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,12 @@ Vagrant.configure(2) do |config|
107107
process_extra_file(config, 'extra/001-env.sh')
108108
process_extra_file(config, 'extra/100-pre-build.sh')
109109
process_extra_file(config, 'extra/120-post-build.sh')
110-
process_extra_file(config, 'extra/db-dump.sql.gz')
111110

111+
# Import db
112+
if File.file?('db-dump.sql.gz')
113+
config.vm.provision 'file', source: 'db-dump.sql.gz', destination: '/home/vagrant/extra/db-dump.sql.gz', run: 'always'
114+
end
115+
112116
# Environment provisioning
113117
config.vm.provision 'shell', path: 'provision/001-system-env.sh', run: 'always', keep_color: true, args: [
114118
projectName, composer['username'], composer['password'],

0 commit comments

Comments
 (0)