Skip to content

Commit 2968d84

Browse files
committed
handle case where a product not actually exist
1 parent a63d12f commit 2968d84

4 files changed

+13
-2
lines changed

content/deploy.go

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ func deployProducts(shopDomain, shopToken string, contents []Content, bar *mpb.B
3131
c <- err
3232
return
3333
}
34+
if productByHandle.ProductByHandle == nil {
35+
c <- fmt.Errorf("Product '%s' is not exist on admin", handle)
36+
return
37+
}
3438

3539
res, err := gqlClient.Deploy(
3640
ctx,

contents/products/cloud-native-spring-in-action-with-spring-boot-and-kubernetes.md

-1
This file was deleted.

contents/products/distributed-services-with-goyour-guide-to-reliable-scalable-and-maintainable-systems.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
分散システムにおける一つのServiceをステップ・バイ・ステップで構築していく本です。基本的にはアプリケーションレイヤーの話がメインですが、最後に少しだけk8sの話が出てきます。
2+
3+
2020年現在では単一のデプロイ単位からなるアプリケーションで成立するサービスってほぼないと思うのですが、そういう意味で新しい世代のWeb開発入門本として読めるかも知れません。
4+
(とは言えいわゆるモノリシックなWebアプリケーションは普通に作れる知識レベルを前提とした本だと思います)
5+
6+
この手の書籍は大抵そうですが、コード例にはテストも付いているので読み進めやすいです。
7+
8+
ところでボブ、アリス、マロリーって公開鍵暗号の説明をする時の定形キャラクターだったんですね。知らなかった。
9+
110
## 出版社より
211

312
You know the basics of Go and are eager to put your knowledge to work. This book is just what you need to apply Go to real-world situations. You’ll build a distributed service that’s highly available, resilient, and scalable. Along the way you’ll master the techniques, tools, and tricks that skilled Go programmers use every day to build quality applications. Level up your Go skills today.

contents/products/the-jamstack-book.md

-1
This file was deleted.

0 commit comments

Comments
 (0)