Belajar Ruby on Rails: Seri Belajar Ruby on Rails Bagian 2
Install Ruby on Rails di Windows dengan Rails Installer
Untuk menggunakan framework Ruby on Rails versi 3 ke atas, seminimalnya inilah yang harus anda install:
- Ruby
- RubyGems
- Rails Gem
- Bundler Gem
- Devkit
- Database ( Mysql / Sqlite / Sql Server / Postgree / dll )
Anda bisa install semua software tersebut secara terpisah dengan download installer nya satu persatu. Jika anda pertama kali install Ruby on Rails, Kami sarankan untuk menggunakan package dari
RailsInstaller karena sangat mudah dan praktis dan tentu saja gratis
:-) . Selain untuk windows, Rails Installer ini juga tersedia untuk OS
X.
Langkah – langkah installasinya sebagai berikut:
1. Download Source Rails Installer
Download railsinstaller dari: http://railsinstaller.org/en
2. Jalankan Rails Installer
Klik 2x pada source Rails Installer yang sudah Anda download.
Baca Aggrement dengan seksama, kemudian jika Anda setuju, klik pilihan
I accept all of the lincenses dan klik tombol Next >
3. Atur Path untuk Rails Installer
Rails Installer akan menanyakan lokasi penyimpananhasil installasi Rails Installer.
Jika Anda sudah setuju untuk menyimpan hasil installasi sesuai
dengan default pada windows diatas, maka klik tombil Install,
jika ingin merubah lokasinya silakan ubah pada text box yang disediakan.
Tunggu proses instalasi hingga selesai.
Setelah intallasi selesai, maka pastikan untuk cek hasil installasi anda benar dengan membuka Command Prompt dan menjalankan perintah:
ruby -v
rails -v
gem -v
Notes:
Versi Rails Installer yang kami gunakan mungkin berbeda dengan Anda, karena itu
versi yang akan muncul di command prompt Anda mungkin berbeda.
Jika kamu mendapat error “the system cannot find the path specified” ikuti langkah – langkah berikut :
- Cobalah buka pada folder/path dimana Rails telah terinstal. Pada tutorial proses instalasi dilakukan di C:/RailsInstaller/Ruby2.3.3, buka folder tersebut.
Cari batch file bernama rails dan bundle
penunjukan file rails.bat
penunjukan file bundle.bat
- Lalu rubah baris code @”C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.3.3\bin\ruby.exe” menjadi @”%~dp0ruby.exe” seperti di bawah ini.
Pada file rails.bat@ECHO OFF IF NOT "%~f0" == "~f0" GOTO :WinNT @"%~dp0ruby.exe" "C:/Users/emachnic/GitRepos/railsinstaller-windows/stage/Ruby2.3.3/bin/rails" %1 %2 %3 %4 %5 %6 %7 %8 %9 GOTO :EOF :WinNT @"%~dp0ruby.exe" "%~dpn0" %*Pada file bundle.bat
@ECHO OFF IF NOT "%~f0" == "~f0" GOTO :WinNT @"%~dp0ruby.exe" "C:/Users/emachnic/GitRepos/railsinstaller-windows/stage/Ruby2.3.3/bin/bundle" %1 %2 %3 %4 %5 %6 %7 %8 %9 GOTO :EOF :WinNT @"%~dp0ruby.exe" "%~dpn0" %*
- Setelah langkah di atas dilakukan, lakukan pengecekan ulang dengan menjalankan perintah ruby -v, rails -v, dan gem -v pada Command Prompt.
Fathara Annisa Azka | C-aio Indonesia
PakarPBN
A Private Blog Network (PBN) is a collection of websites that are controlled by a single individual or organization and used primarily to build backlinks to a “money site” in order to influence its ranking in search engines such as Google. The core idea behind a PBN is based on the importance of backlinks in Google’s ranking algorithm. Since Google views backlinks as signals of authority and trust, some website owners attempt to artificially create these signals through a controlled network of sites.
In a typical PBN setup, the owner acquires expired or aged domains that already have existing authority, backlinks, and history. These domains are rebuilt with new content and hosted separately, often using different IP addresses, hosting providers, themes, and ownership details to make them appear unrelated. Within the content published on these sites, links are strategically placed that point to the main website the owner wants to rank higher. By doing this, the owner attempts to pass link equity (also known as “link juice”) from the PBN sites to the target website.
The purpose of a PBN is to give the impression that the target website is naturally earning links from multiple independent sources. If done effectively, this can temporarily improve keyword rankings, increase organic visibility, and drive more traffic from search results.