From 626e7ec35374c45400f6c765f129c967a6268ed6 Mon Sep 17 00:00:00 2001 From: slayer321 Date: Fri, 27 Oct 2023 15:08:36 +0530 Subject: [PATCH 1/2] update ror readme --- Acornfile | 12 +++++++++++- README.md | 30 ++++-------------------------- 2 files changed, 15 insertions(+), 27 deletions(-) diff --git a/Acornfile b/Acornfile index 5ba7c20..753a6c6 100644 --- a/Acornfile +++ b/Acornfile @@ -2,13 +2,23 @@ name: "Ruby on Rails Sample Acorn" description: "Acorn running a sample Ruby on Rails app" readme: "./README.md" -services: db: image: "ghcr.io/acorn-io/mariadb:v10.11.5-1" +args: { + rordbname: "rordb" +} + +services: db: { + image: "ghcr.io/acorn-io/mariadb:v10.11.5-1" + serviceArgs: { + dbName: args.rordbname + } +} containers: web: { build: { context: "./src" dockerfile: "./src/Dockerfile" } + consumes: ["db"] if args.dev{ dirs: { "/app": "./src" diff --git a/README.md b/README.md index f2aea9a..a220119 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,11 @@ # Acorn for Ruby on Rails sample app - Article App ====== -This is an Acorn for the sample Ruby on Rails Article app following Offical Ruby on rails [Getting Started](https://guides.rubyonrails.org/getting_started.html) section.This sample Article app Implements CRUD where you can create, edit and delete your Articles. - -## Deploy the Ruby on Rails App - -You can deploy the sample web app on the Acorn SaaS Platform with following simple steps. - -1. Login to the [Acorn SaaS Platform](https://beta.acorn.io/) using the Github Sign-In option with your Github user. -2. Select the "Create Acorn" option. -3. Choose the source for deploying your Acorns - * Select "From Acorn Image" to deploy the sample Application - * Provide a name such as `Ruby on Rails Sample Acorn` and keeping Project's default Region, type in the below Acorn image and choose Create - ```bash - ghcr.io/infracloudio/ruby-on-rails-acorn:v6.1.4-0 - ``` -4. Now the sample App is provisioned on Acorn SaaS Platform and is available for 2hrs. Upgrade to pro account to keep it running longer. -5. Once the Acorn is running, you can access it by clicking the Endpoint or the redirect link. -## Acorn Ruby on Rails App Details +[Ruby on Rails](https://rubyonrails.org/), is a web application framework that has revolutionized the way we build modern web applications. It's known for its "convention over configuration" philosophy, which simplifies development tasks and allows programmers to focus on building exceptional features. -The Acorn Dashboard is integrated with multiple features such as Events, Logs, Details and accessing the Shell of the Application. Details include the CPU, Memory, Network, Latency, Requests and Errors for the Application. - -Explore various available options by clicking the Menu option on your Acorn App. - -For more details on using the Acorn Dashboard, check this link - [https://beta-docs.acorn.io/getting-started#exploring-the-acorn-dashboard](https://beta-docs.acorn.io/getting-started#exploring-the-acorn-dashboard) +This is an Acorn for the sample Ruby on Rails Article app following Offical Ruby on rails [Getting Started](https://guides.rubyonrails.org/getting_started.html) section.This sample Article app Implements CRUD where you can create, edit and delete your Articles. -## What next? -After deploying you can edit the Acorn Application or remove it if no longer needed. +## Configure the Ruby on Rails App -1. Click the Edit option to edit your Acorn's Image. Toggle the Advanced Options switch for additional edit options. -2. Remove the Acorn by selecting the Remove option from your Acorn dashboard. \ No newline at end of file +Ruby on rails uses mariadb as the database and it is been used as the [services](https://docs.acorn.io/reference/acornfile#services-consuming) . If you are using Advanace Options on Acorn Platform you can provide the `rordbname`. By default it will be named as `rordb`. \ No newline at end of file From 60fd242e871c99de4f9554131bf8794db1e782d0 Mon Sep 17 00:00:00 2001 From: slayer321 Date: Sun, 29 Oct 2023 19:33:06 +0530 Subject: [PATCH 2/2] add rails svg --- Acornfile | 1 + rails.svg | 1 + 2 files changed, 2 insertions(+) create mode 100644 rails.svg diff --git a/Acornfile b/Acornfile index 753a6c6..55a4319 100644 --- a/Acornfile +++ b/Acornfile @@ -1,6 +1,7 @@ name: "Ruby on Rails Sample Acorn" description: "Acorn running a sample Ruby on Rails app" readme: "./README.md" +icon: "./rails.svg" args: { rordbname: "rordb" diff --git a/rails.svg b/rails.svg new file mode 100644 index 0000000..f8444a4 --- /dev/null +++ b/rails.svg @@ -0,0 +1 @@ + \ No newline at end of file