You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a compatibility with the popular (I guess) SQLx crate.
The implementation is largely inspired by the one for diesel.
I added some info inside the README.md too.
Copy file name to clipboardExpand all lines: README.md
+29-1Lines changed: 29 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,9 @@ To deploy your application, run:
58
58
git push heroku master
59
59
```
60
60
61
-
### Running Diesel migrations during the release phase
61
+
### Running migrations during the release phase
62
+
63
+
#### Diesel
62
64
63
65
This will install the diesel CLI at build time and make it available in your dyno. Migrations will run whenever a new version of your app is released. Add the following line to your `RustConfig`
64
66
@@ -72,6 +74,32 @@ and this one to your `Procfile`
72
74
release: ./target/release/diesel migration run
73
75
```
74
76
77
+
To customize the installation options, set the `DIESEL_FLAGS` in the `RustConfig`:
This will install the SQLx CLI at build time and make it available in your dyno. Migrations will run whenever a new version of your app is released. Add the following line to your `RustConfig`
86
+
87
+
```sh
88
+
RUST_INSTALL_SQLX=1
89
+
```
90
+
91
+
and this one to your `Procfile`
92
+
93
+
```Procfile
94
+
release: ./target/release/sqlx mig run
95
+
```
96
+
97
+
To customize the installation options, set the `SQLX_FLAGS` in the `RustConfig`:
0 commit comments