Commit graph

69 commits

Author SHA1 Message Date
Luca Palmieri
974e855b4d Remove direct 'log' dependency 2022-01-02 16:51:15 +01:00
Luca Palmieri
5292de1c5c Fix clippy errors 2021-12-28 17:48:23 +01:00
Luca Palmieri
d6067b8885 Update dependencies. 2021-12-28 12:54:50 +01:00
Luca Palmieri
b3ddcf6831 Do not use backticks - they lead to the script trying to execute the quoted command. 2021-12-28 12:19:30 +01:00
Luca Palmieri
45fda7429e Use secrecy. 2021-12-27 14:05:56 +01:00
Luca Palmieri
f9ca94c767 Run cargo-update 2021-12-27 11:32:04 +01:00
Luca Palmieri
536952ace4 Remove tracing-futures. 2021-12-27 11:16:43 +01:00
Luca Palmieri
82c7efe82d Update to 2021 edition. 2021-12-27 10:59:19 +01:00
Luca Palmieri
c53af58537 Update to latest version of actix-web, tracing-bunyan-formatter and tracing-subscriber. Use tokio macros instead of actix-web's macros. 2021-12-26 16:40:57 +01:00
LukeMathWalker
309ec25ed7 Use 127.0.0.1 instead of localhost. 2021-10-07 21:55:39 +01:00
LukeMathWalker
7159ac5d0e Update runtime image. 2021-09-30 21:23:24 +01:00
LukeMathWalker
79a65bd65c Lower level of sqxl's logs. 2021-09-30 21:12:33 +01:00
LukeMathWalker
e92a1ff2e5 Connect lazily. 2021-09-29 09:14:01 +01:00
Luca Palmieri
530e57f5d0 Check prepared data is up-to-date. 2021-09-27 18:10:57 +02:00
Luca Palmieri
049794ae34 Update actix-web and fix clippy error. 2021-09-11 21:51:51 +02:00
Luca Palmieri
4c54c11adc Update Dockerfile. 2021-08-31 23:40:02 +02:00
Luca Palmieri
5239345c7d Update actix-http. 2021-08-31 23:28:20 +02:00
Pedro de Matos Fedricci
f48d86b7ab Cache sqlx-cli in CI 2021-08-31 23:21:44 +02:00
LukeMathWalker
4e89fafb5e Fix coverage job 2021-08-01 21:10:38 +01:00
LukeMathWalker
7b86f0decb Fix name conflict with name from the bunyan format. 2021-07-16 09:01:39 +01:00
LukeMathWalker
a39870a134 Re-enable offline feature. 2021-07-14 09:20:25 +01:00
LukeMathWalker
cf94090027 Update Dockerfile to use pinned images. 2021-07-11 19:26:06 +01:00
LukeMathWalker
1fead190a7 Update to latest actix-web 2021-07-11 16:29:27 +01:00
Luca Palmieri
01d975dad9 Proactively verify if psql and sqlx are installed before moving forward with script execution. 2021-07-05 08:59:06 +02:00
Luca Palmieri
c378e22bf5 Use the latest version of sqlx-cli, 0.5.5.
0.5.1 does not work anymore due to a conflict between a constant added to the standard library and a crate in our dependency tree.
2021-07-05 08:08:49 +02:00
LukeMathWalker
89fefdd7d4 Update to latest actix-web. 2021-05-01 16:14:10 +01:00
LukeMathWalker
8c91b8c3da Update to use once_cell instead of lazy_static.
Use a custom sink instead of different log levels to silence logs in tests.
2021-05-01 15:23:55 +01:00
Luca Palmieri
f229e05f32 Fix migration script. 2021-04-28 20:41:34 +01:00
LukeMathWalker
97b30ac499 Update DB script. 2021-04-02 11:48:32 +01:00
LukeMathWalker
662ccc64ba Update Dockerfile to use pre-baked image. 2021-02-12 09:26:24 +00:00
LukeMathWalker
36cd6d2daa Update to latest tokio. 2021-02-11 09:12:55 +00:00
LukeMathWalker
6e0678d459 Update clippy and fmt jobs. 2021-01-23 18:01:00 +00:00
LukeMathWalker
eb1076de9a Fix branch in CI. 2020-12-22 21:25:13 +00:00
LukeMathWalker
4a7c4245c0 Fix chapter number in README.md 2020-12-22 21:23:42 +00:00
LukeMathWalker
e105707c43 Use more idiomatic iteration semantic with any. 2020-12-22 21:22:37 +00:00
Luca Palmieri
1b8c81daea Fix branch name. 2020-12-11 23:02:48 +00:00
Luca Palmieri
c07113d126 Fix branch name. 2020-12-11 23:02:42 +00:00
Luca Palmieri
6db241eef6 Fix integration test. 2020-12-11 21:35:16 +00:00
Luca Palmieri
9dd3b0590a Return 400 on bad names. 2020-12-11 15:50:09 +00:00
Luca Palmieri
56ee4e7746 Use Result 2020-12-11 14:24:11 +00:00
Luca Palmieri
1c27412280 Use AsRef 2020-12-09 22:55:00 +00:00
Luca Palmieri
0eaf310f29 Add SubscriberName constructor. 2020-12-09 17:20:15 +00:00
Luca Palmieri
2953d329ff Add SubscriberName (no methods) 2020-12-09 16:01:36 +00:00
Luca Palmieri
e5a32a51a4 First integration test. 2020-12-08 11:42:05 +00:00
Luca Palmieri
847bb8152a Update CI + update sqlx 2020-12-05 19:10:01 +00:00
Luca Palmieri
f4ae2d2bab Update README. 2020-12-05 17:27:47 +00:00
Luca Palmieri
bfbbf96c41 Chapter 05 (snapshot) 2020-12-05 17:07:31 +00:00
Luca Palmieri
95e403575a
Use debian as base image. (#16) 2020-11-04 10:09:04 +00:00
Luca Palmieri
918af7a6c4
Fix Dockerfile (#14)
* Add chapter 5

* Basic deployment stuff

* Fix Dockerfile.

* Add an explicit connection timeout.

* Align port with configuration.

* Use debug for faster feedback loops.

* Add address configuration.

* Provision database.

* Use structured options.

* Add configuration

* Fix typo.

* Customise deserialization logic.

* Change to Require.

* Fix spec.

* Add a few more things to the dockerignore file.

* Update to match chapter.

* Add base configuration.

* Amend configuratiohn.

* Cache the copied files.

* Explicitly set the SQLX OFFLINE variable.

* Fix Dockerfile.

Co-authored-by: LukeMathWalker <rust@lpalmieri.com>
2020-11-01 23:27:34 +00:00
Luca Palmieri
0a4addc6bb
Chapter 5 (#13)
* Add chapter 5

* Basic deployment stuff

* Fix Dockerfile.

* Add an explicit connection timeout.

* Align port with configuration.

* Use debug for faster feedback loops.

* Add address configuration.

* Provision database.

* Use structured options.

* Add configuration

* Fix typo.

* Customise deserialization logic.

* Change to Require.

* Fix spec.

* Add a few more things to the dockerignore file.

* Update to match chapter.

* Add base configuration.

* Amend configuratiohn.

Co-authored-by: LukeMathWalker <rust@lpalmieri.com>
2020-11-01 21:25:11 +00:00