Skip to content

Commit

Permalink
initial code commit
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Scherf <[email protected]>
  • Loading branch information
fscherf committed Aug 25, 2024
1 parent 4cac195 commit 84375a1
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 22 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
FROM nginx

COPY src/html /usr/share/nginx/html
24 changes: 2 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
# Getting Started with Blank
# Divio Mirrors Demo

[![Deploy to Divio](https://docs.divio.com/deploy-to-divio.svg)](https://control.divio.com/app/new/?template_url=https://github.com/divio/getting-started-with-blank/archive/refs/heads/main.zip)

Welcome to our QuickStart template – your portal to swift application development and seamless local testing. Whether you're delving into Web Development for the first time or optimizing your workflow, Divio has got you covered.

## Cloud Setup

Use the app creation wizard with a free [Divio Account](https://control.divio.com/) and choose **Blank** from the template selection. Alternatively, click the `Deploy to Divio` button above and follow the app creation wizard. Finally, deploy your app to the `test` or `live` environment.

For in-depth details about Divio Cloud, refer to the [Divio documentation](https://docs.divio.com/introduction/).

## Local Setup

Install the [Divio CLI](https://github.com/divio/divio-cli) to set up your app locally.

Alternatively, build this app locally using Docker:

1. Ensure [Docker](https://docs.docker.com/get-docker/) is installed and running.
2. Clone this repository locally.
3. Build the app with `docker compose build`.
4. Run the app using `docker compose up`.
5. Open [http://localhost:8000]() to view your app.
This project is used to showcase the mirrors feature of the Divio platform
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ services:
volumes:
- ".:/app:rw"
- "./data:/data:rw"
- "./src/html:/usr/share/nginx/html"
16 changes: 16 additions & 0 deletions src/html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Divio Mirrors Demo</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<main>
<h1>Divio Mirrors Demo</h1>
<p>v0.0</p>
</main>
</body>
</html>
3 changes: 3 additions & 0 deletions src/html/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
font-family: sans-serif;
}

0 comments on commit 84375a1

Please sign in to comment.