This file contains hidden or 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
# Mina Deploy | |
# =========== | |
# | |
# Adapted from Creative deploy stack in Manabalss v4, Mar.2015 | |
# On first deploy do: mina setup --verbose | |
# Then do : mina deploy --trace | |
# | |
# Usage: | |
# mina deploy --verbose # Standard deploy task | mina deploy[hard,seed] to hard-reset and seed | |
# mina rake[db:seed] |
This file contains hidden or 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
Initialize Digital Ocean Droplet, add SSH key(s) | |
ssh root@<IP> | |
# Fix locales | |
sudo nano /etc/environment | |
LANGUAGE=en_US.UTF-8 | |
LC_ALL=en_US.UTF-8 | |
sudo locale-gen en_US.UTF-8 | |
sudo dpkg-reconfigure locales | |
sudo reboot |
This file contains hidden or 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
# Use this setup block to configure all options available in SimpleForm. | |
SimpleForm.setup do |config| | |
config.error_notification_class = 'alert alert-danger' | |
config.button_class = 'waves-effect waves-light btn' | |
config.boolean_label_class = nil | |
config.wrappers :vertical_form, tag: 'div', class: 'input-field', error_class: 'has-error' do |b| | |
b.use :html5 | |
b.use :placeholder | |
b.optional :maxlength |
This file contains hidden or 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
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rvm' # for rvm support. (http://rvm.io) | |
set :domain, 'esdb.cn' | |
set :identity_file, '/User/somebody/.ssh/somebody.pem' | |
set :deploy_to, '/home/ubuntu/apps/xxx.com' | |
set :repository, 'ssh://[email protected]/somebody/xxx.com.git' | |
set :branch, 'master' |
This file contains hidden or 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
========== RSpec Workflow ========== | |
1 # Add gem stack | |
group :development, :test do | |
# Test stack | |
gem "rspec-rails", '~> 3.2.0' | |
gem "spring-commands-rspec" #Spring for rspec ^ | |
gem "factory_girl_rails" | |
gem "guard-rspec" | |
gem 'rb-fsevent', '~> 0.9.1' | |
gem "faker" #šis ģenerē dummy/fake datus pēc pieprasījuma |
This file contains hidden or 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
========== RSpec Workflow ========== | |
1 # Add gem stack | |
group :development, :test do | |
# Test stack | |
gem "rspec-rails", '~> 3.2.0' | |
gem "spring-commands-rspec" #Spring for rspec ^ | |
gem "factory_girl_rails" | |
gem "guard-rspec" | |
gem 'rb-fsevent', '~> 0.9.1' | |
gem "faker" #šis ģenerē dummy/fake datus pēc pieprasījuma |
This file contains hidden or 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
# config/locales/en.yml | |
en: | |
exception: | |
show: | |
not_found: | |
title: "Not Found" | |
description: "The page you were looking for does not exists." | |
internal_server_error: | |
title: "Internal Server Error" |
This file contains hidden or 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
group :livereload do | |
guard 'livereload' do | |
watch(things) | |
end | |
end |
This file contains hidden or 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
#!/bin/bash | |
apt-get update | |
apt-get -y dist-upgrade | |
# Install dokku | |
# Has to be ran twice for success, not sure why | |
wget -qO- https://raw.github.com/progrium/dokku/v0.2.3/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash | |
wget -qO- https://raw.github.com/progrium/dokku/v0.2.3/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash |
This file contains hidden or 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
set -U fish_color_user magenta | |
set -U fish_color_host yellow | |
function fish_prompt --description 'Write out the prompt' | |
set -l last_status $status | |
# User | |
set_color $fish_color_user | |
printf (whoami) | |
set_color normal |