Posts

Showing posts from October, 2023

Postgres unable to start because insufficient space

 docker system prune --volumes

New things to learn at work

FeatureToggle - to allow beta test VCR - Replay the response so that we can do it offline, without external request ProtoBuf - GRPC - fast fast fast, lots of work is happening at the back Google Analytic guy for billing Dockerize competition  Hygraph  Kafka Message Q

fly.io Dockerize style deployment - vite-ruby

Image
Earlier I tried to deploy my car-maintenance app with Fly.io without success. At first I try to not to have redis as I think that might allow me zero cost deployment. But actually with lowest spec of Redis I can achieve zero cost too. Then I got an error when deploying my app. It tries to connect to a localhost redis I have to create and attach a Redis server. Fly cli has the command to create Redis via Upstash and I did it. `fly redis create` fly redis list fly redis status <redis-instance-name> Then I need to put the redis url into the docker as an argument like below # Set production environment ENV RAILS_ENV = "production" \ BUNDLE_WITHOUT = "development:test" \ BUNDLE_DEPLOYMENT = "1" \ SECRET_KEY_BASE = "insecure-key" \ DEVISE_JWT_SECRET_KEY = "jwt-secret-key" \ REDIS_URL = "redis://default:xxx@fly-dark-meadow-xxx.upstash.io" This will properly set the environment environment. After this ...

Solar as investment

https://www.mytnb.com.my/renewable-energy/large-scale-solar  https://solarvest.my/portfolio/large-scale-solar/ ST Guideline

Rails 7 , importmap VueJs 3

Here is the committed example app https://github.com/abigoroth/car_maintenance/tree/main Over here is the example of how to integrate VueJs into rails app https://github.com/abigoroth/car_maintenance/blob/470ca98c359f6a44cd492a84682083a102fda761/app/javascript/controllers/component_controller.js#L17-L35 Referrance: https://itnext.io/ruby-on-rails-7-importmaps-and-vuejs-3-no-more-webpacker-4ef06372a49c https://stackoverflow.com/questions/42343778/vue-is-not-a-constructor/74339889#74339889 https://www.tutorialspoint.com/vuejs/vuejs_events.htm will have a look into this: https://github.com/zakariaf/rails-base-app Doing this as of today: Git clone in docker