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
#!/usr/bin/env ruby | |
# | |
tests = [ | |
{:name => "RSPEC", :command => "rake spec"}, | |
{:name => "JASMINE", :command => "jasmine-headless-webkit --color"} | |
] | |
tests.each do |test| | |
puts "\e[33mEXECUTING #{test[:name]} TESTS\e[0m" | |
test[:result] = system test[:command] |
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
upstream app_name { | |
server 127.0.0.1:4000; #port examples | |
server 127.0.0.1:4001; | |
} | |
server { | |
server_name example.com; | |
listen 80; | |
access_log <acces_log_path>; | |
error_log <error_log_path; |
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
def change | |
add_column :table_name, :column_name, :column_type, default: 'default value' | |
remove_column :table_name, :column_name | |
rename_column :table_name, :old_name, :new_name | |
change_column :table_name, :column_name, :column_type | |
end |
NewerOlder