From 27e3a6dde3b109d46876ee8b52fcb12b3f837f18 Mon Sep 17 00:00:00 2001 From: slayer321 Date: Mon, 30 Oct 2023 13:17:58 +0530 Subject: [PATCH] update readme and acornfile --- Acornfile | 15 ++++++++++++++- README.md | 31 ++++--------------------------- django.svg | 1 + 3 files changed, 19 insertions(+), 28 deletions(-) create mode 100644 django.svg diff --git a/Acornfile b/Acornfile index 18a6081..9d234fa 100644 --- a/Acornfile +++ b/Acornfile @@ -1,5 +1,18 @@ -services: db: image: "ghcr.io/acorn-io/mariadb:v10.11.5-1" +name: "Django Sample Acorn" +description: "Acorn running a sample Django app" +readme: "./README.md" +icon: "./django.svg" +args: { + djangodbname: "djangodb" +} + +services: db: { + image: "ghcr.io/acorn-io/mariadb:v10.11.5-1" + serviceArgs: { + dbName: args.djangodbname + } +} containers: web: { build: { context: "./mysite" diff --git a/README.md b/README.md index 95d8b2a..6dec283 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,10 @@ # Acorn for Django sample app - Vote App ====== -This is an Acorn for the sample Django Vote app following Django's Offical [Tutorial](https://docs.djangoproject.com/en/4.2/intro/tutorial01/).This sample Vote app lets people view polls and vote in them. An admin site that lets you add, change, and delete polls. - -## Deploy the Django 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 `Django Sample Acorn` and keeping Project's default Region, type in the below Acorn image and choose Create - ```bash - ghcr.io/infracloudio/django-acorn:v4.2.6-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. +Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source. -## Acorn Django App Details - -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 Django Vote app following Django's Offical [Tutorial](https://docs.djangoproject.com/en/4.2/intro/tutorial01/).This sample Vote app lets people view polls and vote in them. An admin site that lets you add, change, and delete polls. -## What next? -After deploying you can edit the Acorn Application or remove it if no longer needed. +## Configure the Django 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 +Laravel 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 `laraveldbname`. By default it will be named as `djangodb`. diff --git a/django.svg b/django.svg new file mode 100644 index 0000000..fae998c --- /dev/null +++ b/django.svg @@ -0,0 +1 @@ + \ No newline at end of file