Skip to content

Instantly share code, notes, and snippets.

Errors process

Follow those instructions to fix some errors which happen on the server

Fail to save database

ssh remote_server

crontab -e # to see the syntax of all tasks
rvm use # server need to reload the rvm environment

#CAPISTRANO CMD

####Deploy current branch

> cap <ENV> deploy

####Maintenance

> cap <ENV> maintenance:on REASON='foo bar' ALLOWED_IPS='xxx.xxx.xx.xxx'
### USAGE
###
### ./ElasticSearch.sh 1.5.0 will install Elasticsearch 1.5.0
### ./ElasticSearch.sh 1.4.4 will install Elasticsearch 1.4.4
### ./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
### ElasticSearch version