Skip to content

Instantly share code, notes, and snippets.

View htq287's full-sized avatar
🤙
Feel Comfortable

Hung Q. htq287

🤙
Feel Comfortable
View GitHub Profile
@tomysmile
tomysmile / mac-setup-redis.md
Last active May 23, 2024 03:17
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@vikashvikram
vikashvikram / setup_nginx_with_ror_on_mac.md
Last active August 22, 2019 10:37
How to setup nginx and passenger for a ruby on rails application on Mac OS X

Setting up nginx with passenger for a Ruby on Rails app on Mac OSX

Nginx with passenger is a very popular choice for production and staging environment for rails applications. It is always a good practice to replicate the production and staging environments on our local systems so that we do not have last minute surprises while deploying. Most of the Ruby on Rails developers use Mac OS as their development environment so this document is regarding setting up Nginx with on it for an already existing rails app. The assumption for this doc is that you do not even have ruby installed on your system. So feel free to skip the steps that are not relevant.

Installing Ruby, setting up Rails app, installing gems and nginx

The recommended way to work on a rails app is to use rvm for installing ruby. We need to have multiple versions of ruby and our gems