You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the app is deployed, you need to obtain the credentials from the server.
48
+
49
+
To obtain the credentials:
50
+
51
+
1. Log in to your new Compute Instance using one of the methods below:
52
+
53
+
-**Lish Console**: Log in to Cloud Manager, click the **Linodes** link in the left menu, and select the Compute Instance you just deployed. Click **Launch LISH Console**. Log in as the `root` user. To learn more, see [Using the Lish Console](/docs/products/compute/compute-instances/guides/lish/).
54
+
-**SSH**: Log in to your Compute Instance over SSH using the `root` user. To learn how, see [Connecting to a Remote Server Over SSH](/docs/guides/connect-to-server-over-ssh/).
55
+
56
+
1. Run the following command to access the credentials file:
57
+
58
+
```command
59
+
cat /home/$USERNAME/.credentials
60
+
```
61
+
62
+
This returns passwords that were automatically generated when the instance was deployed. Save them. Once saved, you can safely delete the file.
63
+
44
64
## Getting Started after Deployment
45
65
46
66
### Accessing the Rocket.Chat App
47
67
48
68
1. Open a browser and navigate to the domain you created in the beginning of your deployment. You can also use your Compute Instance's rDNS, which will appear like `203-0-113-0.ip.linodeusercontent.com`. See the [Managing IP Addresses](/docs/products/compute/compute-instances/guides/manage-ip-addresses/) guide for information on viewing and setting the rDNS value.
49
69
50
-
1. From there, Rocket.Chat prompts you to fill out multiple forms to get your instance created and ready to use:
51
-
52
-

53
-

54
-

55
-

70
+
1. Enter your credentials which can be found in the credentials file on the server.
56
71
57
-
Now that you’ve gone through the setup and accessed your Rocket.Chat instance, check out [the official Rocket.Chat documentation](https://docs.rocket.chat/guides/user-guides) to learn how to further use your Rocket.Chat instance.
72
+
Now that you’ve accessed your Rocket.Chat instance, check out [the official Rocket.Chat documentation](https://docs.rocket.chat/guides/user-guides) to learn how to use the instance.
Copy file name to clipboardExpand all lines: docs/marketplace-docs/guides/ruby-on-rails/index.md
+39-90Lines changed: 39 additions & 90 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Deploy Ruby on Rails through the Linode Marketplace"
3
3
description: "This guide provides you with installation and configuration instructions for deploying Ruby on Rails using the Lindoe One-Click Apps Marketplace."
4
4
published: 2020-03-11
5
-
modified: 2022-03-08
5
+
modified: 2025-06-03
6
6
keywords: ['ruby on rails','marketplace', 'marketplace apps']
[Ruby on Rails](http://rubyonrails.org/) is a server-side web application framework that allows web designers and developers to implement dynamic, fully featured web applications.
@@ -27,123 +27,72 @@ marketplace_app_name: "Roby on Rails"
**Estimated deployment time:** Ruby on Rails should be fully installed within 2-5 minutes after the Compute Instance has finished provisioning.
30
+
**Estimated deployment time:** Ruby on Rails should be fully installed within 5-10 minutes after the Compute Instance has finished provisioning.
31
31
{{< /note >}}
32
32
33
33
## Configuration Options
34
34
35
-
-**Supported distributions:** Ubuntu 20.04 LTS
36
-
-**Recommended minimum plan:**All plan types and sizes can be used.
35
+
-**Supported distributions:** Ubuntu 24.04 LTS
36
+
-**Recommended minimum plan:**For best results, 4GB Dedicated CPU or Shared Compute instance for Ruby on Rails.
37
37
38
38
### Ruby on Rails Options
39
39
40
-
-**Rails Application name***(required)*: The name for your rails application.
40
+
-**Rails Application name***(required)*: Enter the name for your rails application.
41
+
-**Email address***(required)*: Enter the email address to use for generating the SSL certificates.
41
42
42
-
## Getting Started after Deployment
43
-
44
-
### Access Ruby on Rails
45
-
46
-
After Ruby on Rails has finished installing, you will be able to access Ruby on Rails from the console via ssh with your Linode's IPv4 address:
47
-
48
-
1.[SSH into your Linode](/docs/products/compute/compute-instances/guides/set-up-and-secure/#connect-to-the-instance) and [create a limited user account](/docs/products/compute/compute-instances/guides/set-up-and-secure/#add-a-limited-user-account).
49
-
50
-
1. Log out and log back in as your limited user account.
1. Ruby comes with some pre-made scripts to get you started. One of these is a blog. To begin with the blog example, use the following command:
49
+
### Obtain the Credentials
57
50
58
-
rails new blog
51
+
Once the app is deployed, you need to obtain the credentials from the server.
59
52
60
-
This creates a new Rails application called Blog in the `blog` directory.
53
+
To obtain the credentials:
61
54
62
-
1.Move into the `blog` directory:
55
+
1.Log in to your new Compute Instance using one of the methods below:
63
56
64
-
cd blog
57
+
-**Lish Console**: Log in to Cloud Manager, click the **Linodes** link in the left menu, and select the Compute Instance you just deployed. Click **Launch LISH Console**. Log in as the `root` user. To learn more, see [Using the Lish Console](/docs/products/compute/compute-instances/guides/lish/).
58
+
-**SSH**: Log in to your Compute Instance over SSH using the `root` user. To learn how, see [Connecting to a Remote Server Over SSH](/docs/guides/connect-to-server-over-ssh/).
65
59
66
-
1.Start the built in server with the following command, replacing the IP address with your Linode's IP address:
60
+
1.Run the following command to access the credentials file:
67
61
68
-
rails server --binding=198.51.100.0
69
-
70
-
```output
71
-
Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring.
72
-
=> Booting WEBrick
73
-
=> Rails 4.2.7.1 application starting in development on http://198.51.100.0:3000
74
-
=> Run `rails server -h` for more startup options
75
-
=> Ctrl-C to shutdown server
76
-
[2020-03-11 14:17:16] INFO WEBrick 1.3.1
77
-
[2020-03-11 14:17:16] INFO ruby 2.3.3 (2016-11-21) [x86_64-linux-gnu]
78
-
[2020-03-11 14:17:16] INFO WEBrick::HTTPServer#start: pid=3089 port=3000
62
+
```command
63
+
cat /home/$USERNAME/.credentials
79
64
```
80
65
81
-
1. You can visit your application by visiting the address in the browser.
1. Tell Rails where to find the document root. Edit the file `config/routes.rb`, find and uncomment the line root as shown:
68
+
## Getting Started after Deployment
69
+
### Access Ruby on Rails
120
70
121
-
```file {title="config/routes" lang="conf"}
122
-
Rails.application.routes.draw do
123
-
get 'welcome/index'
71
+
The Ruby on Rails Marketplace App is running [Nginx](https://www.nginx.com/), [Ruby](https://www.ruby-lang.org/en/), [Rails](https://rubyonrails.org/), [Puma](https://github.com/puma/puma), and [Mise](https://github.com/jdx/mise). Once deployed, a sample page should be running on your FQDN (if applicable) or the Compute Instance's Reverse DNS address.
124
72
125
-
...
73
+
### Accessing the Ruby on Rails App through the Command Line
126
74
127
-
root 'welcome#index'
75
+
The Ruby on Rails sample application can be found in the `/var/www/$APPNAME` directory.
128
76
129
-
...
130
-
end
131
-
```
77
+
1. Log in to your Compute Instance via [SSH](/docs/guides/connect-to-server-over-ssh/) or [Lish](/docs/products/compute/compute-instances/guides/lish/).
132
78
133
-
1. Start the server again:
79
+
1. Go to the directory in which the application is stored, by running the following command:
134
80
135
-
rails server --binding=198.51.100.0
81
+
cd /var/www/$APPNAME
136
82
137
-
You should see your new welcome page in the web browser.
138
83
139
-
For more information on setting up a more substantial application, refer to the [Ruby on Rails Getting Started Guide](https://guides.rubyonrails.org/getting_started.html).
84
+
### Viewing the Ruby on Rails App through a Web Browser
140
85
141
-
## Next Steps
86
+
Open your web browser and navigate to `https://[domain]/`, where *[domain]* can be replaced with the custom domain you entered during deployment or your Compute Instance's rDNS domain (such as `192-0-2-1.ip.linodeusercontent.com`). See the [Managing IP Addresses](/docs/products/compute/compute-instances/guides/manage-ip-addresses/) guide for information on viewing rDNS.
0 commit comments