cygwin ssh.

If you're using capistrano or webistrano and developing on cygwin environment, you better set server's ssh port to 22. Capistrano does not change it's port number when cap deploy:cold. I googled this problem for 3 days. And this is what I got so far.

edit .git/hooks/pre-commit and comment out the following lines:
if (/\s$/) {
bad_line("trailing whitespace", $_);

below article was written by stevie, at capistrano : google groups.

A better Cygwin package manager: 
1. run setup.exe again, but this time use the GUI and install only 
wget (if you're installing Cygwin on a bunch of machines, it would 
probably be easier to install wget on one machine and then copy over 
then necessary files for wget on the others so you're not having to 
fire up the GUI on each machine) 
2. get Stephen Jungels' apt-cyg and copy it into /bin:  wget 
3. Now you can install any cygwin package with a "apt-cyg install 
".  *MUCH* easier than using that horrible GUI. 
one cent tips
1. Can't see the welcome page?
sudo chown -R www-data:www-data /var/www/rails/learnkorean.kr/current

2. If you cannot deploy production mode, try this
%> RAILS_ENV=production rake db:migrate
%> set RAILS_ENV=production
%> rake db:migrate


Post a Comment