(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # Rails production setup via SQLite3 made durable by https://litestream.io/ | |
| # Copy this to Dockerfile on a fresh rails app. Deploy to fly.io or any other container engine. | |
| # | |
| # try locally: docker build . -t rails && docker run -p3000:3000 -it rails | |
| # | |
| # in production you might want to map /data to somewhere on the host, | |
| # but you don't have to! | |
| # | |
| FROM ruby:3.0.2 |
| #!/bin/sh | |
| # if you're using ZSH, change the shebang above to "#!/bin/zsh -i" | |
| if [ ${#} -ne 2 ]; then | |
| echo >&2 Usage: $(basename ${0}) old-version new-version | |
| exit 1 | |
| fi | |
| home_path=$(cd ~; pwd -P) | |
| old_version=${1} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.