{"id":23669,"date":"2024-05-03T11:09:00","date_gmt":"2024-05-03T04:09:00","guid":{"rendered":"https:\/\/jakarta.telkomuniversity.ac.id\/ruby-on-rails-installation-tutorial-using-linux-vps\/"},"modified":"2024-09-13T16:43:10","modified_gmt":"2024-09-13T09:43:10","slug":"ruby-on-rails-installation-tutorial-using-linux-vps","status":"publish","type":"post","link":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/ruby-on-rails-installation-tutorial-using-linux-vps\/","title":{"rendered":"Ruby on Rails Installation Tutorial Using Linux VPS"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><h1 style=\"text-align: center\" class=\"vc_custom_heading vc_do_custom_heading\" >Ruby on Rails Installation Tutorial Using Linux VPS<\/h1><\/div><\/div><\/div><\/div><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p><span style=\"font-weight: 400;\">Understanding <strong>Ruby on Rails (RoR)<\/strong> will help if you are familiar with the framework before delving deeper into RoR. A framework is a structure designed to simplify the process of developing web applications. The default structure for web pages, databases, and code is provided by the framework. The framework can be simplified by comparing it to a Lego toy, where you can mix and match different Lego pieces to create anything you want. Web application development can be completed faster and more effectively by utilizing RoR.    <\/span><\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><h2 style=\"text-align: left\" class=\"vc_custom_heading vc_do_custom_heading\" >Ruby on Rails (RoR)<\/h2><\/div><\/div><\/div><\/div><div class=\"vc_row wpb_row vc_row-fluid vc_row-o-content-middle vc_row-flex\"><div class=\"wpb_column vc_column_container vc_col-sm-6\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p><span style=\"font-weight: 400;\"><strong>RoR<\/strong> is a Ruby programming language framework. The fact that RoR is a \u201cfull stack\u201d framework is one of its unique selling points. Because of this feature, RoR can be used to generate HTML and update pages directly, including front-end elements, in addition to managing back-end elements such as databases and servers.  <\/span><\/p>\n<p><span style=\"font-weight: 400;\">RoR builds web applications using Model View Controller (MVC) architecture. MVC architecture will separate the web application code into three parts, namely: <\/span><\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><div class=\"wpb_column vc_column_container vc_col-sm-6\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div  class=\"wpb_single_image wpb_content_element vc_align_center wpb_content_element\">\n\t\t\n\t\t<figure class=\"wpb_wrapper vc_figure\">\n\t\t\t<div class=\"vc_single_image-wrapper   vc_box_border_grey\"><img decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/RoR.webp\" class=\"vc_single_image-img attachment-full\" alt=\"ruby on rails\" title=\"RoR\" srcset=\"https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/RoR.webp 1920w, https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/RoR-300x169.webp 300w, https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/RoR-1024x576.webp 1024w, https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/RoR-768x432.webp 768w, https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/RoR-1536x864.webp 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/div>\n\t\t<\/figure>\n\t<\/div>\n<\/div><\/div><\/div><\/div><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p><span style=\"font-weight: 400;\">&#8211; Model: focuses on the server side and deals with databases or data structures.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211; Appearance: focuses on the aesthetics of the web application while serving the user.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211; Controller: connects the Model and View and includes the logic for the web application.<\/span><\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><h2 style=\"text-align: left\" class=\"vc_custom_heading vc_do_custom_heading\" >How to Install Ruby on Rails on Linux VPS<\/h2><\/div><\/div><\/div><\/div><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div  class=\"wpb_single_image wpb_content_element vc_align_center wpb_content_element\">\n\t\t\n\t\t<figure class=\"wpb_wrapper vc_figure\">\n\t\t\t<div class=\"vc_single_image-wrapper   vc_box_border_grey\"><img decoding=\"async\" width=\"5000\" height=\"3000\" src=\"https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/1905.i126.005_programmer-work.webp\" class=\"vc_single_image-img attachment-full\" alt=\"install ruby on rails\" title=\"1905.i126.005_programmer work\" srcset=\"https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/1905.i126.005_programmer-work.webp 5000w, https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/1905.i126.005_programmer-work-300x180.webp 300w, https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/1905.i126.005_programmer-work-1024x614.webp 1024w, https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/1905.i126.005_programmer-work-768x461.webp 768w, https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/1905.i126.005_programmer-work-1536x922.webp 1536w, https:\/\/jakarta.telkomuniversity.ac.id\/wp-content\/uploads\/2024\/05\/1905.i126.005_programmer-work-2048x1229.webp 2048w\" sizes=\"(max-width: 5000px) 100vw, 5000px\" \/><\/div>\n\t\t<\/figure>\n\t<\/div>\n<\/div><\/div><\/div><\/div><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose a VPS Hosting Package: Choose a VPS provider that suits your needs, make sure they provide a choice of Linux operating systems that are compatible with RoR.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Change VPS Operating System: Log in to the VPS control panel and change the operating system to a Linux distribution supported by RoR, such as Ubuntu or CentOS.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">VPS SSH Login and Server Update: Access the VPS via Secure Shell (SSH) and perform a system update using the sudo apt update (for Ubuntu distribution) or sudo yum update (for CentOS distribution) commands.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Install Dependency Linux: Pasang dependensi Linux yang diperlukan untuk menginstal dan menjalankan Ruby on Rails dengan perintah sudo apt install curl gnupg2 dirmngr libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Install Node.js and Yarn: Ruby on Rails requires Node.js and Yarn to run some frontend features. Install both with the appropriate commands for your Linux distribution. <\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Install Rbenv Ruby Version Manager: Rbenv is a Ruby version management tool that allows you to install and use different Ruby versions on one system. Follow the instructions to install Rbenv on its official GitHub page. <\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Install Ruby Programming Language: After installing Rbenv, we can install the desired Ruby version with the command rbenv install [versi_ruby]. Make sure to set the newly installed Ruby version as the default version with the command rbenv global [versi_ruby]. <\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Install RoR Framework: Finally, install the RoR framework with the gem install rails command.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a New Rails Project: Create a new project by running the rails new command. [nama_proyek]. Ini akan membuat struktur dasar untuk proyek web kita. <\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Run Rails Project on Server: Move to our project directory and start the Rails development server with the rails server command. Open a browser and visit the VPS IP address with the port specified by the Rails development server (usually  <\/span><span style=\"font-weight: 400;\"><a href=\"http:\/\/alamat_ip_vps:3000\">http:\/\/alamat_ip_vps:3000<\/a><\/span><span style=\"font-weight: 400;\">).<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">You can quickly launch a RoR-based website on VPS Indonesia by following the previous procedure. For web development, RoR offers a powerful and effective framework, and VPS Indonesia provides a reliable and scalable hosting environment that makes your web application function perfectly. <\/span><\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>Also read: <a href=\"https:\/\/jakarta.telkomuniversity.ac.id\/cara-mudah-install-node-js-di-windows-dan-tutorial-untuk-pemula\/\">Easy Way to Install Node Js on Windows and Tutorial for Beginners<\/a><\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"Ruby on Rails Installation Tutorial Using Linux VPS Understanding Ruby on Rails (RoR) will help if you are familiar with the framework before delving deeper into RoR. A framework is a structure designed to simplify the process of developing web applications. The default structure for web pages, databases, and code is provided by the framework. [...]","protected":false},"author":32,"featured_media":20897,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_wds_title":"Ruby on Rails Installation Tutorial Using Linux VPS","_wds_metadesc":"The framework was first developed by David Heinemeier Hansson in August 2004, and since then Ruby on Rails has experienced rapid growth.","_wds_focus-keywords":"Ruby on Rails","_wds_meta-robots-adv":"","_wds_meta-robots-noindex":false,"_wds_meta-robots-nofollow":false,"_wds_meta-robots-index":false,"_wds_meta-robots-follow":false,"_wds_autolinks-exclude":false,"_wds_canonical":"","_wds_opengraph":[],"_wds_twitter":[],"wds_primary_category":0,"footnotes":""},"categories":[685],"tags":[764,765,763],"class_list":["post-23669","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-education","tag-install-ruby-on-rails-en","tag-rails-en","tag-ruby-on-rails-en"],"_links":{"self":[{"href":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/posts\/23669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/comments?post=23669"}],"version-history":[{"count":0,"href":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/posts\/23669\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/media\/20897"}],"wp:attachment":[{"href":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/media?parent=23669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/categories?post=23669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jakarta.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/tags?post=23669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}