-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Axel Fontaine
committed
Nov 30, 2017
1 parent
b1bb4f1
commit a0df498
Showing
18 changed files
with
167 additions
and
1,600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
layout: documentation | ||
menu: dropwizard | ||
subtitle: 'Dropwizard' | ||
--- | ||
# Dropwizard | ||
|
||
<img src="/assets/logos/dropwizard.png"> | ||
|
||
## Application startup | ||
|
||
While Dropwizard doesn't come with out-of-the-box integration for Flyway you can easily run Flyway on application startup by adding `flyway-core` to your `pom.xml`: | ||
<pre class="prettyprint"><dependency> | ||
<groupId>org.flywaydb</groupId> | ||
<artifactId>flyway-core</artifactId> | ||
<version>{{ site.flywayVersion }}</version> | ||
</dependency></pre> | ||
|
||
And calling Flyway from your application class: | ||
|
||
<pre class="prettyprint" style="font-size: 90%">public class MyApplication extends Application<MyConfiguration> { | ||
... | ||
|
||
@Override | ||
public void run(MyConfiguration configuration, Environment environment) { | ||
DataSourceFactory dataSourceFactory = configuration.getDataSourceFactory(); | ||
Flyway flyway = new Flyway(); | ||
flyway.setDataSource(dataSourceFactory.getUrl(), dataSourceFactory.getUser(), dataSourceFactory.getPassword()); | ||
flyway.migrate(); | ||
... | ||
} | ||
}</pre> | ||
|
||
## CLI add-on | ||
|
||
Jochen Schalanda has created a great <strong><a href="https://github.com/joschi/dropwizard-flyway">Dropwizard Add-On</a></strong> that adds Flyway commands to the CLI of your Dropwizard application. | ||
|
||
The website also comes with comprehensive documentation on usage and configuration. | ||
|
||
<a class="inline-cta" href="https://boxfuse.com/blog/dropwizard-aws"><i class="fa fa-cloud"></i> Want to deploy your Dropwizard apps effortlessly to AWS? Follow our <strong>5 minute</strong> tutorial using <img src="/assets/logo/boxfuse-logo-nano-blue.png"> Boxfuse <i class="fa fa-arrow-right"></i></a> | ||
|
||
<p class="next-steps"> | ||
<a class="btn btn-primary" href="/documentation/plugins/play">Play <i class="fa fa-arrow-right"></i></a> | ||
</p> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
layout: documentation | ||
menu: grails | ||
subtitle: 'Grails' | ||
--- | ||
# Grails | ||
|
||
<img src="/assets/logos/grails.png"> | ||
|
||
Grails 3.x is based on Spring Boot comes with out-of-the-box <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html#howto-execute-flyway-database-migrations-on-startup">integration for Flyway</a>. | ||
|
||
All you need to do is add `flyway-core` to your `build.gradle`: | ||
<pre class="prettyprint">compile "org.flywaydb:flyway-core:{{ site.flywayVersion }}"</pre> | ||
|
||
Spring Boot will then automatically autowire Flyway with its DataSource and invoke it on startup. | ||
|
||
You can then configure a good number of Flyway properties <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html">directly from your <code>application.properties</code> or <code>application.yml file</code></a>. | ||
|
||
<a class="inline-cta" href="https://boxfuse.com/blog/grails-aws"><i class="fa fa-cloud"></i> Want to deploy your Grails 3 apps effortlessly to AWS? Follow our <strong>5 minute</strong> tutorial using <img src="/assets/logo/boxfuse-logo-nano-blue.png"> Boxfuse <i class="fa fa-arrow-right"></i></a> | ||
|
||
<p class="next-steps"> | ||
<a class="btn btn-primary" href="/documentation/plugins/dropwizard">Dropwizard <i class="fa fa-arrow-right"></i></a> | ||
</p> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
layout: documentation | ||
menu: play | ||
subtitle: 'Play' | ||
--- | ||
# Play | ||
|
||
<img src="/assets/logos/play.png" style="margin-bottom: 20px"> | ||
|
||
Play doesn't come with out-of-the-box support for Flyway, however Toshiyuki Takahashi has created a Play plugin to substitute Evolutions for Flyway. | ||
|
||
This lets you run your Flyway migrations on Play application startup. | ||
|
||
For <strong>Play 2.1, 2.2 and 2.3</strong> you can use the <a href="https://github.com/tototoshi/play-flyway">play-flyway plugin</a>. | ||
|
||
For <strong>Play 2.4 and newer</strong> you can use the <a href="https://github.com/flyway/flyway-play">flyway-play module</a>. | ||
|
||
Both sites contain instructions on how to get started quickly as well as comprehensive documentation on usage and configuration. | ||
|
||
<a class="inline-cta" href="https://boxfuse.com/blog/playframework-aws"><i class="fa fa-cloud"></i> Want to deploy your Play apps effortlessly to AWS? Follow our <strong>5 minute</strong> tutorial using <img src="/assets/logo/boxfuse-logo-nano-blue.png"> Boxfuse <i class="fa fa-arrow-right"></i></a> | ||
|
||
<p class="next-steps"> | ||
<a class="btn btn-primary" href="/documentation/plugins/sbt">SBT <i class="fa fa-arrow-right"></i></a> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
layout: documentation | ||
menu: sbt | ||
subtitle: 'SBT' | ||
--- | ||
# SBT | ||
|
||
<img src="/assets/logos/sbt.svg" height="80"> | ||
|
||
David Webber maintains a great <strong><a href="https://github.com/flyway/flyway-sbt">SBT 1.0+ plugin</a></strong> that adds Flyway commands to your build. | ||
|
||
The website also comes with comprehensive documentation on usage and configuration. | ||
|
||
<p class="next-steps"> | ||
<a class="btn btn-primary" href="/documentation/plugins/other">Other Tools & Frameworks <i class="fa fa-arrow-right"></i></a> | ||
</p> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
layout: documentation | ||
menu: springboot | ||
subtitle: 'Spring Boot' | ||
--- | ||
# Spring Boot | ||
|
||
<img src="/assets/logos/springboot.png" style="margin-bottom: 20px"> | ||
|
||
Spring Boot comes with out-of-the-box <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html#howto-execute-flyway-database-migrations-on-startup">integration for Flyway</a>. | ||
|
||
All you need to do is add `flyway-core` to either your `pom.xml`: | ||
<pre class="prettyprint"><dependency> | ||
<groupId>org.flywaydb</groupId> | ||
<artifactId>flyway-core</artifactId> | ||
<version>{{ site.flywayVersion }}</version> | ||
</dependency></pre> | ||
|
||
Or `build.gradle`: | ||
|
||
<pre class="prettyprint">compile "org.flywaydb:flyway-core:{{ site.flywayVersion }}"</pre> | ||
|
||
Spring Boot will then automatically autowire Flyway with its DataSource and invoke it on startup. | ||
|
||
You can then configure a good number of Flyway properties <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html">directly from your <code>application.properties</code> or <code>application.yml file</code></a>. | ||
|
||
<a class="inline-cta" href="https://boxfuse.com/blog/spring-boot-ec2"><i class="fa fa-cloud"></i> Want to deploy your Spring Boot apps effortlessly to AWS? Follow our <strong>5 minute</strong> tutorial using <img src="/assets/logo/boxfuse-logo-nano-blue.png"> Boxfuse <i class="fa fa-arrow-right"></i></a> | ||
|
||
<p class="next-steps"> | ||
<a class="btn btn-primary" href="/documentation/plugins/grails">Grails <i class="fa fa-arrow-right"></i></a> | ||
</p> |
Oops, something went wrong.