This repository was archived by the owner on Jul 25, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathsetup.js
95 lines (84 loc) · 4.54 KB
/
setup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import React from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
import { Spirit } from '../styles/spirit-styles'
import { Layout } from '../components/common/layout'
import { SetupBox } from '../components/setup'
import { MetaData, getMetaImageUrls } from '../components/common/meta'
const SetupPage = ({ data, location }) => {
// Add meta title and description for this page here to overwrite the site meta data as set in the config
const title = `How To Install Ghost: Setup & Configuration - Open Source Publishing`
const description = `All the tools you need to get started with Ghost 👉Self-hosted install & setup, local install guide for development, contribution guidelines & premium hosted services!`
const imageUrl = getMetaImageUrls()
return (
<>
<MetaData
data={data}
location={location}
type="website"
title={title || data.site.siteMetadata.title}
description={description || data.site.siteMetadata.description}
image={imageUrl}
/>
<Layout mainClass="bg-whitegrey-l2 pb-vw3" bodyClass="bg-white">
<section className="bg-setup">
<div className={`${Spirit.page.xl} tc-ns pt-vw6 pt-vw5-ns pb-vw5 white`}>
<h1 className={`${Spirit.sectionHeading} gh-integration-header-shadow`}>Setup Guide</h1>
<p className={Spirit.sectionSubHeading}>
The easiest way to get started is to use <strong>Ghost(Pro)</strong>. If you prefer to self-host, we strongly recommend an Ubuntu server with at least 1GB of memory to run Ghost.
</p>
</div>
</section>
<div className={`${Spirit.page.xl} mt-vw3`}>
<section className="grid-12 gutter-row-20 gutter-20-ns gutter-36-l">
<SetupBox href="https://ghost.org/pricing/" title="Ghost(Pro)" icon="ghost-pro-logo" iconClass="w9 h9" headingClass="mt2">
<strong>Fully managed PaaS</strong> with 1-click deployment, worldwide CDN, backups, upgrades & security
</SetupBox>
<SetupBox to="/install/ubuntu/" title="Ubuntu" icon="ubuntu-logo" iconClass="w8 h8" headingClass="mt2">
<p className={`${Spirit.small} mw70`}>
A full guide for installing Ghost on Ubuntu <strong>16.04 LTS</strong> and <strong>18.04 LTS</strong> <em>(Recommended)</em>
</p>
</SetupBox>
<SetupBox href="https://hub.docker.com/_/ghost/" title="Docker" icon="docker-logo" iconClass="w10 h10" headingClass="mt1">
<p className={`${Spirit.small} mw70`}>
<strong>Unofficial community package</strong> for running Ghost inside a Docker container
</p>
</SetupBox>
<SetupBox to="/install/local/" title="Local install" icon="terminal" iconClass="fill-midlightgrey w8 h8" headingClass="mt2">
<p className={`${Spirit.small} mw70`}>
<strong>Fast-track</strong> local install for running Ghost on your computer or doing theme development
</p>
</SetupBox>
<SetupBox to="/install/source/" title="Install from Source" icon="github-outline" iconClass="fill-darkgrey w8 h8" headingClass="mt2">
<p className={`${Spirit.small} mw70`}>
<strong>Advanced developer guide</strong> for working directly on Ghost Core and Ghost Admin
</p>
</SetupBox>
</section>
</div>
</Layout>
</>
)
}
SetupPage.propTypes = {
data: PropTypes.shape({
site: PropTypes.shape({
siteMetadata: PropTypes.shape({
siteUrl: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
}).isRequired,
}).isRequired,
}).isRequired,
location: PropTypes.shape({
pathname: PropTypes.string.isRequired,
}).isRequired,
}
export default SetupPage
export const pageQuery = graphql`
query {
site {
...SiteMetaFields
}
}
`