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
tns doctor (to check everything installed is Ok) | |
tns create my-app-name --ng (to create new app from scratch) | |
tns platform add android (to add android platform in the app) | |
tns run android --emulator (to run with an emulator) | |
tns run android (to run with a device) | |
tns livesync android --watch or tns livesync android --emulator --watch |
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
1. How to check one index mappings i.e which fields are mapped | |
curl -XGET 'http://localhost:9200/_mapping?pretty=true' | |
2. Delete index | |
$ curl -XDELETE 'http://localhost:9200/journeys/' where journeys is the index name |
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
PIDFILE=./resque.pid BACKGROUND=yes QUEUE="*" rake resque:work >> worker1.log & | |
PIDFILE=./resque-scheduler.pid BACKGROUND=yes QUEUE="*" rake resque:scheduler |
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
Link I used i the following steps is https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-puma-and-nginx-on-ubuntu-14-04 and this link http://ruby-journal.com/how-to-setup-rails-app-with-puma-and-nginx/ | |
Also a useful link to do this properly is http://nicolas-brousse.github.io/ubuntu-install-and-tips/pages/installation/rails-puma/ | |
1. Install DBMS (postgre, mysql) and install rvm, ruby, rails and there dependencies | |
2. clone the git repository to any location ideally in home | |
3. cd myapp |
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
https://www.digitalocean.com/community/tutorials/how-to-automate-ruby-on-rails-application-deployments-using-capistrano | |
https://gist.github.com/sathishmanohar/5491263 | |
https://github.com/JasonGiedymin/nginx-init-ubuntu | |
#states how to start nginx if nginx is installed with different scenarios. |
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
IMPORTING DATA FROM HEROKU TO LOCAL MACHINE | |
Install the Heroku Backup tool | |
$ heroku addons:add pgbackups | |
Start using it | |
$ heroku pgbackups:capture | |
Download the remote db on Heroku (to your local machine) using curl |
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
1. Log in to the AWS console. (First you should create account on Amazon) | |
2. Create key pair | |
3. Create elastic IP | |
4. Make new instance of the aws manually. | |
5. Create the ppk key from the .pem key. | |
6. Login to the putty give the public ip to in the host and also add the putty key file in the auth/ssh | |
7. Provide ubuntu as the user name. | |
Now after the login | |
A- Install required ruby version using RVM |