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
| " Disable compatibility with vi which can cause unexpected issues. | |
| set nocompatible | |
| " Enable type file detection. Vim will be able to try to detect the type of file in use. | |
| filetype on | |
| " Enable plugins and load plugin for the detected file type. | |
| filetype plugin on | |
| " Load an indent file for the detected file type. |
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
| echo "Installing xcode-stuff" | |
| xcode-select --install | |
| # Check for Homebrew, and then install it | |
| if test ! "$(which brew)"; then | |
| echo "Installing homebrew..." | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| echo "Homebrew installed successfully" | |
| else | |
| echo "Homebrew already installed!" |
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
| defmodule YourApp.ReleaseTasks do | |
| @app :your_app | |
| @repos Application.get_env(:your_app, :ecto_repos, []) | |
| def migrate() do | |
| Application.load(@app) | |
| for repo <- @repos do | |
| {:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true)) |
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
| 0x6eE327f434bac0C7cD6fb5A767840d327F98Cf2C |
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/initializers/redis.rb | |
| require 'redis' | |
| require 'redis/objects' | |
| REDIS_CONFIG = YAML.load( File.open( Rails.root.join("config/redis.yml") ) ).symbolize_keys | |
| dflt = REDIS_CONFIG[:default].symbolize_keys | |
| cnfg = dflt.merge(REDIS_CONFIG[Rails.env.to_sym].symbolize_keys) if REDIS_CONFIG[Rails.env.to_sym] | |
| $redis = Redis.new(cnfg) | |
| Redis::Objects.redis = $redis |