Skip to content

Commit

Permalink
fix utf-8 sequel bug, migrate to canister registry
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-koba-mobidev committed Sep 6, 2019
1 parent 152e3ff commit 7685495
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions admin/init/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
DB = Sequel.connect(config)
Sequel.extension :migration
Sequel.extension :pagination
Sequel::Model.plugin :force_encoding, 'UTF-8'
Sequel::Model.db.extension(:pagination)
require 'will_paginate/sequel'
end
8 changes: 4 additions & 4 deletions bin/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
UNIXTIME=$(date +%s)

cd ./front
docker build -f Dockerfile.prod -t repo.treescale.com/skoba/blog:build-$UNIXTIME .
docker push repo.treescale.com/skoba/blog:build-$UNIXTIME
docker build -f Dockerfile.prod -t cloud.canister.io:5000/skoba/blog:build-$UNIXTIME .
docker push cloud.canister.io:5000/skoba/blog:build-$UNIXTIME

cd ../admin
docker build -f Dockerfile.prod -t repo.treescale.com/skoba/blog-admin:build-$UNIXTIME .
docker push repo.treescale.com/skoba/blog-admin:build-$UNIXTIME
docker build -f Dockerfile.prod -t cloud.canister.io:5000/skoba/blog-admin:build-$UNIXTIME .
docker push cloud.canister.io:5000/skoba/blog-admin:build-$UNIXTIME

cd ..
helm upgrade -i --set image.tag=build-$UNIXTIME --wait --namespace default blog ./chart
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/admin_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ spec:
path: /
port: http
imagePullSecrets:
- name: regcred
- name: canister-regcred
2 changes: 1 addition & 1 deletion chart/templates/front_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ spec:
path: /
port: http
imagePullSecrets:
- name: regcred
- name: canister-regcred
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1

image:
repository: repo.treescale.com/skoba/blog
repository: cloud.canister.io:5000/skoba/blog
tag: latest
pullPolicy: IfNotPresent

Expand Down
1 change: 1 addition & 0 deletions front/init/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
DB = Sequel.connect(config)
Sequel.extension :migration
Sequel.extension :pagination
Sequel::Model.plugin :force_encoding, 'UTF-8'
Sequel::Model.db.extension(:pagination)
require 'will_paginate/sequel'
end

0 comments on commit 7685495

Please sign in to comment.