Skip to content

Instantly share code, notes, and snippets.

View ruslan-oliinyk's full-sized avatar
🎯
Focusing

Ruslan Oliinyk ruslan-oliinyk

🎯
Focusing
View GitHub Profile
@ruslan-oliinyk
ruslan-oliinyk / deploy_with_kamal.md
Last active September 20, 2024 20:30
Deploy Rails app with Kamal

Deploying a Rails app to cloud services using Docker and Kamal (a library for deploying apps containerized with Docker).

https://kamal-deploy.org/

1. Create a new app

rails new APP_NAME -d postgresql -j esbuild -c bootstrap --skip-test

cd APP_NAME
@ruslan-oliinyk
ruslan-oliinyk / env_variables.md
Last active May 27, 2021 10:08
How to use the same variables inside Ruby ​​and JS code at the same time

How to use the same variables inside Ruby and JS code at the same time

Prerequisites:

  • Ruby 2.3+
  • Rails 5.1+
  • Webpacker 4.x.x
  • Node.js 8.16.0+
  • Yarn 1.x+