Skip to content

Instantly share code, notes, and snippets.

View nguyenthanhcong101096's full-sized avatar
🤫

Nguyen Thanh Cong nguyenthanhcong101096

🤫
  • Coinhako
  • Thao Dien, TP Thu Duc, HCM
View GitHub Profile
@nguyenthanhcong101096
nguyenthanhcong101096 / rails-directory-structure-guide.md
Last active May 5, 2020 16:20
rails-directory-structure-guide

Rails Directory Structure Guide

There is a default directory structure that Ruby on Rails comes with. The Rails guides go in depth in explaining the folder structure, but does not talk about the extra folders that commonly get added in Rails Apps.

The goal of this guide is to be a central place to learn about ALL the folders that are used in Rails apps, not just the ones that come by default (Marked with asterisk).

We will also go over explaining RSpec folder structure and any additional folders.

Cach su dung Vim

1.search file

command ctrl + p

2.tìm kiếm và thay thế

command :s/search/thaythe/g

3.xoa 1 dong

@nguyenthanhcong101096
nguyenthanhcong101096 / Mina deploy.md
Last active May 5, 2020 16:20
Deploy Rails application to AWS server with mina deployment

Deploy app with Mina

Mina | Github

Step 1: New deploy user with sudo privileges

  • ssh to server
sudo useradd -d /home/app -m app
sudo passwd app

Deploy app with Capistrano

Capistrano | Github

Step 1: Add gem && bundle install

  • Gemfile
group :development