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

Posted: March 1, 2007 in ノート, RUBY, Ruby on Rails, Svn, Technology
sayang:~/langsungbuang/inspeksi arie$ mysql -uroot -p -A
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 41 to server version: 5.0.22-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database inspeksi_dev;                 
Query OK, 1 row affected (0.00 sec)

mysql> create database inspeksi_test;
Query OK, 1 row affected (0.00 sec)

mysql> create database inspeksi_prod;
Query OK, 1 row affected (0.01 sec)

mysql> grant all on inspeksi_dev.* to inspeksi@localhost;
Query OK, 0 rows affected (0.13 sec)

mysql> grant all on inspeksi_test.* to inspeksi@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> grant all on inspeksi_prod.* to inspeksi@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> set password for inspeksi@localhost=password("inspeksi123")
    -> ;
Query OK, 0 rows affected (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.05 sec)

mysql> exit
Bye
sayang:~/langsungbuang/inspeksi arie$ script/about
About your application's environment
Ruby version                 1.8.5 (powerpc-darwin8.8.0)
RubyGems version             0.9.0
Rails version                1.2.2
Active Record version        1.15.2
Action Pack version          1.13.2
Action Web Service version   1.2.2
Action Mailer version        1.3.2
Active Support version       1.4.1
Application root             /Users/arie/langsungbuang/inspeksi
Environment                  development
Database adapter             mysql
sayang:~/langsungbuang/inspeksi arie$ svn st
M      config/database.yml
sayang:~/langsungbuang/inspeksi arie$ 

GERO GERO. Andaikan ada fasilitas ruby one liner di dalam seluruh dimensi termasuk mysql barusan, niscaya sayang
akan berperilaku Proc.new { |x| lakukan_perintah }

sayang:~/langsungbuang/inspeksi arie$ svn ci -m 'database.yml sudah sesuai Tuan!'
Sending        config/database.yml
Transmitting file data .
Committed revision 7.
sayang:~/langsungbuang/inspeksi arie$ svn info
Path: .
URL: file:///svn/inspeksi/trunk
Repository Root: file:///svn/inspeksi
Repository UUID: 5ad167db-882a-0410-8e64-bd18e8948ea8
Revision: 2
Node Kind: directory
Schedule: normal
Last Changed Author: arie
Last Changed Rev: 2
Last Changed Date: 2007-02-28 20:02:24 +0700 (Wed, 28 Feb 2007)

sayang:~/langsungbuang/inspeksi arie$ svn up
At revision 7.
sayang:~/langsungbuang/inspeksi arie$ svn info
Path: .
URL: file:///svn/inspeksi/trunk
Repository Root: file:///svn/inspeksi
Repository UUID: 5ad167db-882a-0410-8e64-bd18e8948ea8
Revision: 7
Node Kind: directory
Schedule: normal
Last Changed Author: arie
Last Changed Rev: 7
Last Changed Date: 2007-02-28 23:31:08 +0700 (Wed, 28 Feb 2007)

sayang:~/langsungbuang/inspeksi arie$ svn log
------------------------------------------------------------------------
r7 | arie | 2007-02-28 23:31:08 +0700 (Wed, 28 Feb 2007) | 1 line

database.yml sudah sesuai Tuan!
------------------------------------------------------------------------
r6 | arie | 2007-02-28 23:14:29 +0700 (Wed, 28 Feb 2007) | 1 line

ignore tmp
------------------------------------------------------------------------
r5 | arie | 2007-02-28 23:13:45 +0700 (Wed, 28 Feb 2007) | 1 line

sekarang setel tmp utk tidak dipedulikan juga. caranya dihapus dulu
------------------------------------------------------------------------
r4 | arie | 2007-02-28 22:55:40 +0700 (Wed, 28 Feb 2007) | 1 line

set ignore untuk direktori log
------------------------------------------------------------------------
r3 | arie | 2007-02-28 22:53:19 +0700 (Wed, 28 Feb 2007) | 1 line

commit pertama, hapus semua file log yang ada di dir log
------------------------------------------------------------------------
r2 | arie | 2007-02-28 20:02:24 +0700 (Wed, 28 Feb 2007) | 1 line

import rails yang masih kosong
------------------------------------------------------------------------
r1 | arie | 2007-02-28 19:54:29 +0700 (Wed, 28 Feb 2007) | 1 line

import svn layout
------------------------------------------------------------------------
sayang:~/langsungbuang/inspeksi arie$ 

GERO GERO. Perintah perintah di atas sangat intuitif cucuku. Ikuti saja tahap demi tahap. GERO GERO.

Setelah database.yml di setel sesuai keperluan, maka buatkan pula database.yml.sample untuk contoh
dan ignore database.yml supaya setiap yang mencoba rails bisa mengubah sesuka hati konfigurasi yang
disimpan di file yml tersebut (setting unrevisioned). Selanjutnya cucuku latihan sendiri! Bersambung… Nantikan cerita selanjutnya masih di gelombang yang sama, pls stay tuned!

Comments

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