Skip to content

Instantly share code, notes, and snippets.

View CharlieYe0205's full-sized avatar

CharlieYe0205

View GitHub Profile
@CharlieYe0205
CharlieYe0205 / capistrano_rbenv_bundler_not_found.md
Last active July 7, 2019 05:03
Capistrano rbenv bundler not found

Deploy rails via capistrano-rbenv may have the bundler issue.

bundle: command not found

The following line need to be remove even it is list on the offical doc

# set :rbenv_map_bins, %w{rake gem bundle ruby rails} # Remove this
@CharlieYe0205
CharlieYe0205 / rvm_install_openssl_fail.md
Last active December 30, 2023 20:18
RVM Install Openssl Fail
rvm pkg install openssl
Requirements installation successful.
Fetching openssl-1.0.1i.tar.gz to /Users/user/.rvm/archives
Extracting openssl to /Users/user/.rvm/src/openssl-1.0.1i.....
Configuring openssl in /Users/user/.rvm/src/openssl-1.0.1i....................
Compiling openssl in /Users/user/.rvm/src/openssl-1.0.1i......................
@CharlieYe0205
CharlieYe0205 / smtp_settings.md
Last active June 19, 2019 00:54
SMTP Settings

Gmail

address: 			smtp.gmail.com
domain:				gmail.com
port:				587
username:			gmail account
password:			gmail password
authentication:		plain
ssl false
@CharlieYe0205
CharlieYe0205 / deploy_kafka_producer_and_consumer.md
Last active June 19, 2019 00:54
Deploy Kafka Producer and Consumer to Ubuntu 18.04

Setup Gemfile

after follow this to deploy the project first

move listen gem out of development block in Gemfile

gem 'listen', '>= 3.0.5', '< 3.2'

install delivery_boy, racecar and foreman

@CharlieYe0205
CharlieYe0205 / deploy_rails_5.md
Last active May 5, 2022 03:14
Deploy Rails 5 to Ubuntu 18.04

Create user deploy

sudo adduser deploy
sudo adduser deploy sudo
visudo
deploy  ALL=(ALL:ALL) ALL
su deploy