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
1. Login to your aws account. | |
2. Visit Opsworks, https://console.aws.amazon.com/opsworks/home. | |
3. Create new stack. | |
4. In Stack's Configuration Management, provide the following custom JSON: | |
{ | |
"environment_variables": { | |
"NODE_ENV": "production" | |
}, | |
"deploy": { | |
"YOUR_APP_NAME": { |
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
1. Search or find big files Linux (50MB) in current directory: | |
>$ find . -type f -size +10000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' | |
2. Truncate file: | |
>$ truncate file --size 0 | |
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
A. Install Using homebrew | |
brew install phantomjs | |
If you encounter error this error, phantomjs: OS X Mavericks or older is required for stable, | |
you can download phantomjs binary. | |
B. Install using binary | |
1. Download phantomjs binary, http://phantomjs.org/download.html |
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
class SampleScreen < Promotion::Screen | |
title "Sample" #pass empty string if you dont want to display title in nav_bar | |
def on_load | |
customize_nav_bar | |
end | |
private | |
def customize_nav_bar | |
#set nav bar buttons using ProMotion |
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
Edit .gitignore to match the file you want to ignore | |
git rm --cached /path/to/file |
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 gem into Gemfile and do bundle install | |
gem "capistrano-sidekiq" | |
#replace "require 'sidekiq/capistrano'" in Capfile | |
require 'capistrano/sidekiq' |