Skip to content

Commit c44da7a

Browse files
committed
Merge pull request #225 from slack/refactor-docs
proposal: refactor quickstart and docs
2 parents daf12a2 + 91bfcab commit c44da7a

62 files changed

Lines changed: 2217 additions & 953 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ deps:
3232
pip install -r requirements.txt
3333

3434
test: build
35-
grep -q '<title>Deis Documentation</title>' _build/html/index.html
35+
grep -q '<title>Deis Workflow Documentation</title>' _build/html/index.html
3636
@echo
3737
@echo "Test finished. The HTML pages are in $(BUILDDIR)."
3838

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Deis Workflow is the second major release (v2) of the Deis PaaS. If you are looking for the CoreOS-based PaaS visit [https://github.com/deis/deis](https://github.com/deis/deis).
88

9-
If you are looking to **get started** with **Deis Workflow** read the [Quick Start Guide](src/installing-workflow/quickstart.md) in this repository or on [Read the Docs](https://docs-v2.readthedocs.org/en/latest/).
9+
If you are looking to **get started** with **Deis Workflow** read the [Quick Start Guide](src/quickstart/index.md) in this repository or on [Read the Docs](https://docs-v2.readthedocs.org/en/latest/).
1010

1111
Visit [https://deis.com](https://deis.com) for more information on [why you should use Deis Workflow](https://deis.com/why-deis/) or [learn about its features](https://deis.com/how-it-works/).
1212

mkdocs.yml

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,65 @@
22
# NOTE: titles need to be capitalized here to work around MkDocs automatically downcasing title
33
# names
44
#
5-
site_name: Deis Documentation
5+
site_name: Deis Workflow Documentation
66
pages:
7-
- Welcome: index.md
8-
- Quick Start: installing-workflow/quickstart.md
7+
- Home: index.md
8+
- Quick Start:
9+
- Overview: quickstart/index.md
10+
- Install CLI Tools: quickstart/install-cli-tools.md
11+
- AWS:
12+
- Boot: quickstart/provider/aws/boot.md
13+
- DNS: quickstart/provider/aws/dns.md
14+
- Install Workflow: quickstart/provider/aws/install-aws.md
15+
- GKE:
16+
- Boot: quickstart/provider/gke/boot.md
17+
- DNS: quickstart/provider/gke/dns.md
18+
- Install Workflow: quickstart/provider/gke/install-gke.md
19+
- Vagrant:
20+
- Boot: quickstart/provider/vagrant/boot.md
21+
- DNS: quickstart/provider/vagrant/dns.md
22+
- Install Workflow: quickstart/provider/vagrant/install-vagrant.md
23+
- Deploy Your First App: quickstart/deploy-an-app.md
924
- Understanding Workflow:
1025
- Concepts: understanding-workflow/concepts.md
1126
- Architecture: understanding-workflow/architecture.md
1227
- Components: understanding-workflow/components.md
1328
- Installing Workflow:
14-
- Quick Start: installing-workflow/quickstart.md
29+
- Installing Workflow: installing-workflow/index.md
1530
- System Requirements: installing-workflow/system-requirements.md
16-
- Installing Workflow: installing-workflow/installing-deis-workflow.md
1731
- Configuring Object Storage: installing-workflow/configuring-object-storage.md
18-
- Using Workflow:
19-
- Installing the Client: using-workflow/installing-the-client.md
20-
- Registering a User: using-workflow/registering-a-user.md
21-
- Deploying an Application: using-workflow/deploying-an-application.md
22-
- Process Types and the Procfile: using-workflow/process-types-and-the-procfile.md
23-
- Using Buildpacks: using-workflow/using-buildpacks.md
24-
- Using Dockerfiles: using-workflow/using-dockerfiles.md
25-
- Using Docker Images: using-workflow/using-docker-images.md
26-
- Configuring an Application: using-workflow/configuring-an-application.md
27-
- Managing an Application: using-workflow/managing-an-application.md
28-
- Application SSL Certificates: using-workflow/application-ssl-certificates.md
32+
- Users:
33+
- Command Line Interface: users/cli.md
34+
- Users and Registration: users/registration.md
35+
- SSH Keys: users/ssh-keys.md
36+
- Applications:
37+
- Deploying Apps: applications/deploying-apps.md
38+
- Buildpacks: applications/using-buildpacks.md
39+
- Dockerfiles: applications/using-dockerfiles.md
40+
- Docker Images: applications/using-docker-images.md
41+
- Managing App Processes: applications/managing-app-processes.md
42+
- Managing App Configuration: applications/managing-app-configuration.md
43+
- Managing App Lifecycle: applications/managing-app-lifecycle.md
44+
- Resource Limits: applications/managing-resource-limits.md
45+
- Domains and Routing: applications/domains-and-routing.md
46+
- SSL Certificates: applications/ssl-certificates.md
2947
- Managing Workflow:
48+
- Configuring Components: managing-workflow/component-configuration.md
3049
- Configuring Load Balancers: managing-workflow/configuring-load-balancers.md
3150
- Configuring DNS: managing-workflow/configuring-dns.md
32-
- Operational Tasks: managing-workflow/operational-tasks.md
3351
- Platform Logging: managing-workflow/platform-logging.md
3452
- Platform Monitoring: managing-workflow/platform-monitoring.md
3553
- Production Deployments: managing-workflow/production-deployments.md
3654
- Security Considerations: managing-workflow/security-considerations.md
3755
- Platform SSL: managing-workflow/platform-ssl.md
3856
- Upgrading Workflow: managing-workflow/upgrading-workflow.md
39-
- Customizing Workflow:
40-
- CLI Plugins: customizing-workflow/cli-plugins.md
41-
- Tuning Component Settings: customizing-workflow/tuning-component-settings.md
4257
- Troubleshooting:
4358
- Troubleshooting with kubectl: troubleshooting/troubleshooting.md
4459
- Roadmap:
4560
- Planning Process: roadmap/planning-process.md
4661
- Roadmap: roadmap/roadmap.md
4762
- Release Schedule: roadmap/release-schedule.md
4863
- Release Checklist: roadmap/release-checklist.md
49-
- Test Plan: roadmap/test-plan.md
5064
- Contributing:
5165
- Overview: contributing/overview.md
5266
- Design Documents: contributing/design-documents.md
@@ -62,7 +76,6 @@ pages:
6276
- Creating a Self-Signed SSL Certificate: reference-guide/creating-a-self-signed-ssl-certificate.md
6377
# FIXME (bacongobbler): our custom deis theme only supports a toctree depth of 2 due to css issues
6478
- Controller API v2.0: reference-guide/controller-api/v2.0.md
65-
- FAQ: faq.md
6679
theme_dir: themes/deis
6780
docs_dir: src
6881
markdown_extensions:

src/using-workflow/deploying-an-application.md renamed to src/applications/deploying-apps.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,48 @@
22

33
An [Application][] is deployed to Deis using `git push` or the `deis` client.
44

5-
65
## Supported Applications
76

8-
Deis can deploy any application or service that can run inside a Docker container. In order to be scaled horizontally, applications must follow the [Twelve-Factor App][] methodology and store any application state in external backing services.
7+
Deis Workflow can deploy any application or service that can run inside a Docker container. In order to be scaled
8+
horizontally, applications must follow the [Twelve-Factor App][] methodology and store any application state in external
9+
backing services.
910

10-
For example, if your application persists state to the local filesystem -- common with content management systems like Wordpress and Drupal -- it cannot be scaled horizontally using `deis scale`.
11+
For example, if your application persists state to the local filesystem -- common with content management systems like
12+
Wordpress and Drupal -- it cannot be scaled horizontally using `deis scale`.
1113

1214
Fortunately, most modern applications feature a stateless application tier that can scale horizontally inside Deis.
1315

14-
1516
## Login to the Controller
1617

1718
!!! important
18-
if you haven't yet, now is a good time to [install the client](installing-the-client.md) and [register](registering-a-user.md).
19+
if you haven't yet, now is a good time to [install the client][install client] and [register](../users/registration.md).
1920

2021
Before deploying an application, users must first authenticate against the Deis [Controller][]
2122
using the URL supplied by their Deis administrator.
2223

23-
$ deis login http://deis.example.com
24-
username: deis
25-
password:
26-
Logged in as deis
27-
24+
```
25+
$ deis login http://deis.example.com
26+
username: deis
27+
password:
28+
Logged in as deis
29+
```
2830

2931
## Select a Build Process
3032

31-
Deis supports three different ways of building applications:
33+
Deis Workflow supports three different ways of building applications:
3234

3335
### Buildpacks
3436

3537
Heroku buildpacks are useful if you want to follow Heroku's best practices for building applications or if you are porting an application from Heroku.
3638

37-
Learn how to deploy applications [using Buildpacks](using-buildpacks.md).
39+
Learn how to deploy applications [using Buildpacks](../applications/using-buildpacks.md).
3840

3941

4042
### Dockerfiles
4143

4244
Dockerfiles are a powerful way to define a portable execution environment built on a base OS of your choosing.
4345

44-
Learn how to deploy applications [using Dockerfiles](using-dockerfiles.md).
46+
Learn how to deploy applications [using Dockerfiles](../applications/using-dockerfiles.md).
4547

4648

4749
### Docker Image
@@ -50,8 +52,9 @@ Deploying a Docker image onto Deis allows you to take a Docker image from either
5052
or a private registry and copy it over bit-for-bit, ensuring that you are running the same
5153
image in development or in your CI pipeline as you are in production.
5254

53-
Learn how to deploy applications [using Docker images](using-docker-images.md).
55+
Learn how to deploy applications [using Docker images](../applications/using-docker-images.md).
5456

57+
[install client]: ../users/cli.md#installation
5558
[application]: ../reference-guide/terms.md#application
5659
[controller]: ../understanding-workflow/components.md#controller
5760
[Twelve-Factor App]: http://12factor.net/
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Domains and Routing
2+
3+
You can use `deis domains` to add or remove custom domains to your application:
4+
5+
$ deis domains:add hello.bacongobbler.com
6+
Adding hello.bacongobbler.com to finest-woodshed... done
7+
8+
Once that's done, you can go into your DNS registrar and set up a CNAME from the new
9+
appname to the old one:
10+
11+
$ dig hello.deisapp.com
12+
[...]
13+
;; ANSWER SECTION:
14+
hello.bacongobbler.com. 1759 IN CNAME finest-woodshed.deisapp.com.
15+
finest-woodshed.deisapp.com. 270 IN A 172.17.8.100
16+
17+
!!! note
18+
Setting a CNAME for your root domain can cause issues. Setting your @ record
19+
to be a CNAME causes all traffic to go to the other domain, including mail and the SOA
20+
("start-of-authority") records. It is highly recommended that you bind a subdomain to
21+
an application, however you can work around this by pointing the @ record to the
22+
address of the load balancer (if any).

src/using-workflow/configuring-an-application.md renamed to src/applications/managing-app-configuration.md

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Deis application [stores config in environment variables][].
44

5-
## Configure the Application
5+
## Setting Environment Variables
66

77
Use `deis config` to modify environment variables for a deployed application.
88

@@ -51,29 +51,6 @@ the application to an external PostgreSQL database.
5151

5252
Detachments can be performed with `deis config:unset`.
5353

54-
## Custom Domains
55-
56-
You can use `deis domains` to add or remove custom domains to your application:
57-
58-
$ deis domains:add hello.bacongobbler.com
59-
Adding hello.bacongobbler.com to finest-woodshed... done
60-
61-
Once that's done, you can go into your DNS registrar and set up a CNAME from the new
62-
appname to the old one:
63-
64-
$ dig hello.deisapp.com
65-
[...]
66-
;; ANSWER SECTION:
67-
hello.bacongobbler.com. 1759 IN CNAME finest-woodshed.deisapp.com.
68-
finest-woodshed.deisapp.com. 270 IN A 172.17.8.100
69-
70-
!!! note
71-
Setting a CNAME for your root domain can cause issues. Setting your @ record
72-
to be a CNAME causes all traffic to go to the other domain, including mail and the SOA
73-
("start-of-authority") records. It is highly recommended that you bind a subdomain to
74-
an application, however you can work around this by pointing the @ record to the
75-
address of the load balancer (if any).
76-
7754

7855
## Custom Health Checks
7956

@@ -149,38 +126,6 @@ Configured health checks also modify the default application deploy behavior.
149126
When starting a new pod, Workflow will wait for the health check to pass before
150127
moving onto the next pod.
151128

152-
## Track Changes
153-
154-
Each time a build or config change is made to your application, a new [release][] is created.
155-
Track changes to your application using `deis releases`.
156-
157-
$ deis releases
158-
=== peachy-waxworks Releases
159-
v4 3 minutes ago gabrtv deployed d3ccc05
160-
v3 1 hour 17 minutes ago gabrtv added DATABASE_URL
161-
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
162-
v1 6 hours 2 minutes ago gabrtv deployed deis/helloworld
163-
164-
165-
## Rollback the Application
166-
167-
Use `deis rollback` to revert to a previous release.
168-
169-
$ deis rollback v2
170-
Rolled back to v2
171-
172-
$ deis releases
173-
=== folksy-offshoot Releases
174-
v5 Just now gabrtv rolled back to v2
175-
v4 4 minutes ago gabrtv deployed d3ccc05
176-
v3 1 hour 18 minutes ago gabrtv added DATABASE_URL
177-
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
178-
v1 6 hours 3 minutes ago gabrtv deployed deis/helloworld
179-
180-
!!! note
181-
All releases (including rollbacks) append to the release ledger.
182-
183-
184129
[attached resources]: http://12factor.net/backing-services
185130
[stores config in environment variables]: http://12factor.net/config
186131
[release]: ../reference-guide/terms.md#release

0 commit comments

Comments
 (0)