This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
sitemap_noindex: true | |
sitemap_priority: 0.8 | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* setup nameservers with domain provider | |
* create droplet in digital ocean | |
* create new deploy user | |
sudo adduser deploy (adding user deploy, enter password when prompted) | |
adduser deploy sudo (adding user to sudo group) | |
su deploy (switch to deploy user) | |
* logout | |
* add ssh key to deploy user | |
ssh-copy-id deploy@domain.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +sathish is my openname (Bitcoin username). https://onename.com/sathish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Step 1: Add capistrano to Gemfile, then run `capify .` | |
# Step 2: create /public/assets directory locally | |
# Step 3: upload database.yml file to app_path/shared/config/database.yml on server | |
require 'bundler/capistrano' | |
require 'rvm/capistrano' | |
#server login details | |
set :application, "domain.com" | |
set :user, 'user' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Login as root | |
ssh root@domain | |
# Create deploy user | |
adduser <username> #Adds User with username given. Enter Password when Prompted. Other Details are Optional | |
# Add user to sudo group | |
usermod -g <groupname> <username> | |
# Add .ssh/authorized_keys for deploy user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Sathish Manohar | |
email = design.sathish@gmail.com | |
[core] | |
editor = vim | |
[merge] | |
tool = vimdiff | |
[color] | |
ui = auto | |
[alias] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Stop Mysql | |
sudo /etc/init.d/mysql stop | |
#Start Mysql in safe mode, but skip user privileges table | |
sudo mysqld_safe --skip-grant-tables & | |
#Login to mysql | |
mysql -u root | |
#Select mysql db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add devise to Gemfile | |
gem 'devise' | |
# Run bundle | |
bundle install | |
# Run devise install | |
rails generate devise:install | |
# Make sure alert code in application.html.erb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rails', '3.2.8' | |
gem 'bootstrap-sass', '2.0.4' | |
gem 'bcrypt-ruby', '3.0.1' | |
gem 'faker', '1.0.1' | |
gem 'will_paginate', '3.0.3' | |
gem 'bootstrap-will_paginate', '0.0.6' | |
gem 'jquery-rails', '2.0.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create Rails app and skip-bundle and Test Framework creation and specifiy database | |
rails new app_name -T -d mysql --skip-bundle | |
# Copy appropriate Gemfile | |
# Add necessary Gems to Gemfile then run `bundle install` | |
bundle install | |
# Then init Guard | |
bundle exec guard init rspec |