class MyKlass
include
CONSTANTS
belongs_to
has_one
has_many
accepts_nested_attributes_for
attr_accessible
validates
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
Configurer le depoiement dans le fichier : | |
/config/deploy.rb | |
Déploiement en staging ou en production | |
$ cap staging deploy | |
$ cap production deploy | |
Déploiement en staging ou en production, une branch spécifique | |
$ cap -s branch=tweet_features staging deploy |
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
Stop solr | |
$ rake sunspot:solr:stop | |
Vérifie que tu n'as plus d'instance solr en train de tourner | |
$ ps -eaf | grep java | |
S'il reste des instances, tu les kill. | |
$ kill nb_proccess | |
Pour finir on restart et on reindex |
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
Pour afficher le crontab | |
$ crontab -l | |
Pour créer ou éditer un crontab | |
$ crontab -e | |
Pour supprimer un crontab | |
$ crontab -r |
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
Export en csv via la base local SocialActivity | |
$ rake custom:extract_follow_celebrities | |
Mettre le fichier obtenu dans le dossier du site B&C | |
Executer cette tâche dans le dossier du site | |
$ rake db:load_follow_celebrity |
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
Lister les branchs existantes | |
$ git branch | |
Créer une branch | |
$ git branch new_branch | |
Changer de branch | |
$ git checkout new_branch | |
Supprimer une branch |
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
Si probleme de connection serveur heroku : | |
Verifier que le compte heroku est bien linké au serveur | |
Verifier ces liens ssh : | |
$ ssh-add -R | |
$ ssh-add ~/.ssh/heroku_rsa |