Most of programs will not accept an email using just @localhost as domain.
So, edit /etc/hosts
file to make the domain localhost.com point to your machine, including this content to the file:
127.0.0.1 localhost.com
#!/bin/bash | |
### USAGE | |
### | |
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7 | |
### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
### | |
### CLI options Contributed by @janpieper | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch |
require 'bundler/capistrano' | |
require 'capistrano_colors' | |
load 'deploy/assets' | |
# ssh forwarding and shell | |
set :default_run_options, { :pty => true } | |
set :ssh_options, { :forward_agent => true } | |
set :scm_verbose, true | |
set :scm, :git |
Most of programs will not accept an email using just @localhost as domain.
So, edit /etc/hosts
file to make the domain localhost.com point to your machine, including this content to the file:
127.0.0.1 localhost.com
# Converts facets with foreign keys to their corresponding objects. | |
# Usage: | |
# | |
# Each article belongs to a user, and has a facet for the user_id attribute. | |
# | |
# facets = Article.facets | |
# FacetExpander.expand facets, :user | |
# | |
# facets[:users] has facets for each user object, and original user_id facet is | |
# still available as well. |
if (req.method === 'OPTIONS') { | |
console.log('!OPTIONS'); | |
var headers = {}; | |
// IE8 does not allow domains to be specified, just the * | |
// headers["Access-Control-Allow-Origin"] = req.headers.origin; | |
headers["Access-Control-Allow-Origin"] = "*"; | |
headers["Access-Control-Allow-Methods"] = "POST, GET, PUT, DELETE, OPTIONS"; | |
headers["Access-Control-Allow-Credentials"] = false; | |
headers["Access-Control-Max-Age"] = '86400'; // 24 hours | |
headers["Access-Control-Allow-Headers"] = "X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept"; |