Alangkah Mudah Rails dan Svn Berpadu, Inspeksi Konstanta yang Hilang? (Bagian 2.5)

Posted: March 1, 2007 in ノート, RUBY, Ruby on Rails, Svn, Technology

Sesungguhnya yang sayang lakukan adalah implementasi dari svn help ps, yaitu menyetel direktori log agar di ignore, agar
tidak dipedulikan. apakah ada file development.log, apakah tidak ada. apakah berubah. Intinya menyetel supaya direktori log
tidak dipedulikan. GERO GERO (Buset! hampir lupa lagi gw nyebut nyebut mantra ini :p )

sayang:~/langsungbuang/inspeksi arie$ svn rm tmp/*
D         tmp/cache
D         tmp/pids
D         tmp/sessions
D         tmp/sockets
sayang:~/langsungbuang/inspeksi arie$ svn up tmp
At revision 4.
sayang:~/langsungbuang/inspeksi arie$ svn st
D      tmp/pids
D      tmp/cache
D      tmp/sessions
D      tmp/sockets
sayang:~/langsungbuang/inspeksi arie$ svn ci -m "sekarang setel tmp utk tidak dipedulikan juga. caranya dihapus dulu"
Deleting       tmp/cache
Deleting       tmp/pids
Deleting       tmp/sessions
Deleting       tmp/sockets

Committed revision 5.
sayang:~/langsungbuang/inspeksi arie$ ls -a tmp
./    ../   .svn/
sayang:~/langsungbuang/inspeksi arie$ svn ps svn:ignore "*.*" tmp
property 'svn:ignore' set on 'tmp'
sayang:~/langsungbuang/inspeksi arie$ svn st
 M     tmp
sayang:~/langsungbuang/inspeksi arie$ svn ci -m "ignore tmp"
Sending        tmp
subversion/libsvn_client/commit.c:873: (apr_err=160028)
svn: Commit failed (details follow):
subversion/libsvn_repos/commit.c:127: (apr_err=160028)
svn: Out of date: '/trunk/tmp' in transaction '5-1'
sayang:~/langsungbuang/inspeksi arie$ svn up tmp
At revision 5.
sayang:~/langsungbuang/inspeksi arie$ svn ci -m "ignore tmp"
Sending        tmp

Committed revision 6.
sayang:~/langsungbuang/inspeksi arie$ ls -a tmp
./    ../   .svn/
sayang:~/langsungbuang/inspeksi arie$ 

GERO GERO KEROCA! hal yang sama dilakukan lagi! setelah direktori log yang diignore, direktori tmp pun di ignore.
Kenapa? Karena memang sudah pantas untuk dipedulikan. Direktori tmp dan log hanya akan mengganggu kesinambungan
aliran-aliran chakra perpaduan jurus-jurus kalian dengan svn. GERO GERO. Kalau kalian ikuti baris demi baris dengan
coding praktek langsung. Usahakan pakai Linux GERO GERO Sukur sukur kalau punya Mac GERO GERO kalau punya Windows
seperti si Boncel GERO GERO latihanlah pakai Dual dengan Linux, supaya terlihat kenyamanannya bahwa dunia kita
erat kaitannya dengan dunia console. Console adalah anugrah interface terindah yang pernah kau miliki.. GERO GEROOO

sayang:~/langsungbuang/inspeksi arie$ cat config/database.yml 
# MySQL (default setup).  Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
#   gem install mysql
# On MacOS X:
#   gem install mysql -- --include=/usr/local/lib
# On Windows:
#   gem install mysql
#       Choose the win32 build.
#       Install MySQL and put its /bin directory on your path.
#
# And be sure to use new-style password hashing:
#   http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
  adapter: mysql
  database: inspeksi_development
  username: root
  password:
  host: localhost

# Warning: The database defined as 'test' will be erased and
# re-generated from your development database when you run 'rake'.
# Do not set this db to the same as development or production.
test:
  adapter: mysql
  database: inspeksi_test
  username: root
  password:
  host: localhost

production:
  adapter: mysql
  database: inspeksi_production
  username: root
  password: 
  host: localhost
sayang:~/langsungbuang/inspeksi arie$ emacs config/database.yml 
sayang:~/langsungbuang/inspeksi arie$ cat config/database.yml 
# MySQL (default setup).  Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
#   gem install mysql
# On MacOS X:
#   gem install mysql -- --include=/usr/local/lib
# On Windows:
#   gem install mysql
#       Choose the win32 build.
#       Install MySQL and put its /bin directory on your path.
#
# And be sure to use new-style password hashing:
#   http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
  adapter: mysql
  database: inspeksi_dev
  username: inspeksi
  password: inspeksi123
  host: localhost

# Warning: The database defined as 'test' will be erased and
# re-generated from your development database when you run 'rake'.
# Do not set this db to the same as development or production.
test:
  adapter: mysql
  database: inspeksi_test
  username: inspeksi
  password: inspeksi123
  host: localhost

production:
  adapter: mysql
  database: inspeksi_prod
  username: inspeksi
  password: inspeksi123
  host: localhost
sayang:~/langsungbuang/inspeksi arie$ 

GERO GERO. Diatas cuma emacs config/database.yml diubah sesuai keperluan saja GERO GERO.

Comments
  1. Tulisan ini bersambung-sambung, berikut link-link lengkapnya : 0.5 1.0 1.5 2.0 2.5 3.0

    kalo gak tahan ato protes ama errornya bisa pake contoh dibawah ini untuk ignore svn ya:

    m:aka_smsblast arie$ svn rm tmp/*
    D tmp/cache
    D tmp/pids
    D tmp/sessions
    D tmp/sockets
    m:aka_smsblast arie$ svn up tmp
    ariekusuma@rubyforge.org’s password:
    At revision 122.
    m:aka_smsblast arie$ svn ps svn:ignore “*.*” tmp
    property ’svn:ignore’ set on ‘tmp’
    m:aka_smsblast arie$ svn up tmp
    ariekusuma@rubyforge.org’s password:
    At revision 122.
    m:aka_smsblast arie$ svn ci -m ‘tmp dir is ignored since this revision’
    ariekusuma@rubyforge.org’s password:
    Sending tmp
    Deleting tmp/cache
    Deleting tmp/pids
    Deleting tmp/sessions
    Deleting tmp/sockets

    Committed revision 123.
    m:aka_smsblast arie$ svn up
    ariekusuma@rubyforge.org’s password:
    At revision 123.
    m:aka_smsblast arie$

    nih tinggal enak makan makan di copy paste doang one liner =D

    m:pat-maddox arie$ svn rm tmp/* && svn up tmp && svn ps svn:ignore “*.*” tmp && svn up tmp && svn ci -m ‘tmp dir is ignored’ && svn up && svn rm log/* && svn up log && svn ps svn:ignore “*.*” log && svn up log && svn ci -m ‘log dir is ignored’ && svn up
    D tmp/cache
    D tmp/pids
    D tmp/sessions
    D tmp/sockets
    At revision 2.
    property ’svn:ignore’ set on ‘tmp’
    At revision 2.
    Sending tmp
    Deleting tmp/cache
    Deleting tmp/pids
    Deleting tmp/sessions
    Deleting tmp/sockets

    Committed revision 3.
    At revision 3.
    D log/development.log
    D log/production.log
    D log/server.log
    D log/test.log
    At revision 3.
    property ’svn:ignore’ set on ‘log’
    At revision 3.
    Sending log
    Deleting log/development.log
    Deleting log/production.log
    Deleting log/server.log
    Deleting log/test.log

    Committed revision 4.
    At revision 4.
    m:pat-maddox arie$

    svn rm tmp/* && svn up tmp && svn ps svn:ignore “*.*” tmp && svn up tmp && svn ci -m ‘tmp dir is ignored’ && svn up && svn rm log/* && svn up log && svn ps svn:ignore “*.*” log && svn up log && svn ci -m ‘log dir is ignored’ && svn up

tinggalkan feedback konstruktif atau lebih baik diam

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s