You are on page 1of 5

laporan Cloud Computing Appfog

Di Susun Oleh : Serphian David Setiawam NIM : 075410167

LABORATORIUM TERPADU SEKOLAH TINGGI MANAJEMEN INFORMATIKA DAN KOMPUTER AKAKOM YOGYAKARTA 2013

Appfog adalah layanan server cloud gratis yang menyediakan RAM sebesar 2GB (2000MB). dengan RAM sebesar itu website akan powerfull dan tidak lagi khawatir kena suspend shared hosting hanya dikarenakan traffic padat yang bisa mengganggu pengguna lain. Namun fasilitas yang ditawarkan appfog cukup sulit bagi yang belum pernah bergulat dengan cloud computing. Appfog sudah menyediakan beberapa aplikasi siap install. Untuk memulai memerlukan account beta dan af. Jika kita belum membiarkan Anda ke beta pribadi kita, menambahkan email ke appfog.com. Untuk menginstal af, Dibutuhkanperlu Ruby Ruby dan RubyGems. A. Instalasi & login 1. Lakukan Update gem dengan perintah $ gem update --system 2. Install koneksi ke appfog : $ gem install af 3. Login ke server appfog: $ af login Attempting login to [https://api.appfog.com] Email: Interrupted ## Jika gagal,berarti email yang dimasukan belum terdaftar di dalam appfog Attempting login to [https://api.appfog.com] Email: underkost@gmail.com Password: ********* Successfully logged into [https://api.appfog.com] B. Aplikasi Proses pembuatan aplikasi, dalam contoh ini saya membuat aplikasi dengan nama "sekolah" berikut perintahnya $ af push [WARNING] DL is deprecated, please use Fiddle Would you like to deploy from the current directory? [Yn]: Y Application Name: belajar01 (tulis aplikasi anda)

Detected a PHP Application, is this correct? [Yn]: Y 1: AWS US East - Virginia 2: AWS EU West - Ireland 3: AWS Asia SE - Singapore 4: Rackspace AZ 1 - Dallas 5: HP AZ 2 - Las Vegas Select Infrastructure: 3 (pilih lokasi data center yang anda sukai) Application Deployed URL [belajar01.ap01.aws.af.cm]: (enter aja) Memory reservation (128M, 256M, 512M, 1G, 2G) [128M]: (enter aja) How many instances? [1]: 1 Create services to bind to 'belajar01'? [yN]: Y 1: mongodb 2: mysql 3: postgresql 4: rabbitmq 5: redis What kind of service?: 2 Specify the name of the service [mysql-97c55]: (enter aja) Create another? [yN]: N Would you like to save this configuration? [yN]: Y Manifest written to manifest.yml. Creating Application: OK Creating Service [mysql-97c55]: OK Binding Service [mysql-97c55]: OK ## Jika terjadi kesalahan seperti Creating Application: Error 701: The URIs: af01.aws.af.cm have already been taken or reserved. Terjadi error disebabkan karena nama domain dari aplikasi harus super unique, jadi tidak boleh ada yang sama. Jika sama maka secara otomatis akan di tolak oleh appfog. Uploading Application: Checking for available resources: OK Processing resources: OK Packing application: OK Uploading (17K): OK Push Status: OK Staging Application 'belajar01': OK Starting Application 'belajar01': OK

$ af apps Printah diatas digunakan untuk melihat aplikasi yang sudah ter install di appfog. +-------------+----+---------+--------------------------+----------+-------+ | Application | # | Health | URLS | Services | In | +-------------+----+---------+--------------------------+----------+-------+ | belajar01 | 1 | RUNNING | belajar01.eu01.aws.af.cm | | eu | underkost | 1 | RUNNING | underkost.eu01.aws.af.cm | | eu | underkost01 | 1 | RUNNING | underkost01.aws.af.cm | | aws +-------------+----+---------+--------------------------+----------+-------+ C. Membuat dan mengupload file Membuat direktori belajar01 $ mkdir belajar01 $ cd belajar01/ $ ls 3. Membuat file index.php $ gedit index.php ## Akan keluar halaman notepad,disana dapat mengisi code php atau html D. Upload file $ af update belajar01 Uploading Application: Checking for available resources: OK Packing application: OK Uploading (0K): OK Push Status: OK Stopping Application 'belajar01': Cannot access target (getaddrinfo: Name or service not known) ## Terjadi error dikarenakan jaringan internet sedang bermasalah,sehingga tidak terhubung ke server appfog.

Jika berhasil Uploading Application: Checking for available resources: OK Packing application: OK Uploading (0K): OK Push Status: OK ## Setelah berhasil bias langsung buka alamat domain yang sudah terdaftar di appfog,dan akan terlihat hasilnya.

You might also like