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
# Find this line config.navigational_formats = ['*/*', :html] in devise.rb file and replace it with this line inorder to accept JSON request and give JSON response. | |
config.navigational_formats = ["*/*", :html, :json] |
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
Install Redis on ubuntu first | |
1) Add PPA | |
$ sudo add-apt-repository ppa:chris-lea/redis-server | |
Press ENTER to accept the repository. | |
2) Run the following command to update our packages: | |
$ sudo apt-get update | |
3) Install the Redis server: | |
$ sudo apt-get install redis-server | |
4) Check that Redis is up and running: | |
$ redis-benchmark -q -n 1000 -c 10 -P 5 |