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
| # run Selenium tests on a whole app | |
| ./script/server -e test | |
| # followed by | |
| rake test:acceptance | |
| # This is in lieu of running | |
| ./script/server -e test | |
| # then browsing to |
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
| # Capistrano deployment scripts | |
| # the deployment script will go to default environment (usually "dev"), others like "staging" can be targeted by using "cap staging deploy", etc. | |
| # update the server with the latest revision in the repository | |
| cap deploy | |
| # run rake db:migrate on the server | |
| cap deploy:migrate | |
| # updates the server with the latest project in the repository and then runs rake db:migrate |
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
| # Use TextMate as default text editor | |
| export EDITOR="/usr/bin/mate -w" |
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
| # Find what port an application is running on. | |
| # Especially useful at Webfaction | |
| ps -ef | grep APPNAME |
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
| # Ignore .DS_Store files from a git repository | |
| # Find and remove existing files from the repository: | |
| find . -name .DS_Store -print0 | xargs -0 git-rm | |
| # Add the line ".DS_Store" to the file .gitignore, which can be found at the top level of your repository (or created if it isn't there already) | |
| git add .gitignore | |
| git commit -m ".DS_Store banished!" | |
| # http://stackoverflow.com/questions/107701/how-can-i-remove-dsstore-files-from-a-git-repository |
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
| # Export database from MySQL: | |
| sudo mysqldump -u database_username database_name > path_to_file_to_export_to.sql |
NewerOlder