Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit cda354e

Browse files
committed
Enhancement: Update build target
1 parent f540f94 commit cda354e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.xml

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222
<exec logoutput="true" checkreturn="true" command="ssh ${ssh.user}@${ssh.host} -p ${ssh.port} 'cd ${project.root}; composer install --no-dev'" />
2323
</target>
2424

25-
<target name="deploy" description="Deploys application to production" depends="git-reset, git-pull, composer-install">
25+
<target hidden="true" name="doctrine-migration">
26+
<echo message="Runs Doctrine migrations" />
27+
<exec logoutput="true" checkreturn="true" command="ssh ${ssh.user}@${ssh.host} -p ${ssh.port} 'cd ${project.root}; php public/index.php migrations:migrate --no-interaction --verbose'" />
28+
</target>
29+
30+
<target name="deploy" description="Deploys application to production" depends="git-reset, git-pull, composer-install, doctrine-migration">
2631
<echo message="Successfully deployed to production" />
2732
</target>
2833
</project>

0 commit comments

Comments
 (0)