Skip to content

Instantly share code, notes, and snippets.

View srih4ri's full-sized avatar
🔥
Lighting things on fire, brb

Srihari srih4ri

🔥
Lighting things on fire, brb
View GitHub Profile
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'sinatra', require: 'sinatra'
end
set :app_file, $0
get '/' do
@srih4ri
srih4ri / deploy.sh
Created March 7, 2022 19:24
This is a deploy.sh used for updating a rails app from a git repo and restarting the app.
#!/bin/sh
# This is an old script which was used to deploy rails applications to production
# It mimics what `capistrano` would do.
# Leaving it here for archival.
PATH=$PATH:/opt/ree
prod_dir='/srv/rails/myapp'
# this dir needs to have something like :
# /srv/rails/myapp