-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Add docker config #4
Conversation
jrconlin
commented
Apr 27, 2018
- Adds docker-compose commands
- Fixes migration to be more "existing db friendly"
- adds Cargo.lock because binary
ee02fe2
to
6fa34e6
Compare
.circleci/config.yml
Outdated
- image: docker:17.12.1-ce | ||
working_directory: /dockerflow | ||
steps: | ||
- checkout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you'll want to include this to avoid problems on circleci: mozilla-services/megaphone@f81d556
README.md
Outdated
|
||
Because I'm horribly creative and because this is a WIP, I use "`test:test@localhost/pushbox`". | ||
This is not recommended for production use. You can set your preferred | ||
This is not recommended for production use. You can set your preferred | ||
MySQL access credential information as "database_url" in the `Rocket.toml` | ||
settings file (See [Rocket Config](https://rocket.rs/guide/configuration/#rockettoml) | ||
information.) | ||
|
||
3) Run the MySQL migrations `up.sql` file located in `./migrations/*/up.sql` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can kill this step now that the embedded_migrations handles it
src/error.rs
Outdated
@@ -100,6 +100,12 @@ impl From<Context<HandlerErrorKind>> for HandlerError { | |||
} | |||
} | |||
|
|||
impl From<Error> for HandlerError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This conversion from any failure Error is maybe too lax for HandlerError, I think
If you return a regular Result instead of HandlerResult from Server::start (it's not a rocket Handler anyway so it doesn't make sense there) this conversion wouldn't be needed
917c336
to
3fdf021
Compare
* Adds docker-compose commands * Fixes migration to be more "existing db friendly" * adds Cargo.lock because binary