-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: check for ssl and make ca + cert (#89)
- Loading branch information
Showing
14 changed files
with
347 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
const {makeCert} = require('../../src/server/ssl'); | ||
const {checkSSL, validate} = require('../../src/server/ssl'); | ||
|
||
module.exports = (args) => { | ||
if (args.check) { | ||
// | ||
validate(); | ||
} | ||
if (args.make) { | ||
makeCert(args); | ||
checkSSL(); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
id: quick-start | ||
title: Quick start | ||
sidebar_label: Quick start | ||
slug: /quick-start | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs | ||
defaultValue="new" | ||
values={[ | ||
{label: 'New Project', value: 'new'}, | ||
{label: 'Existing Project', value: 'existing'}, | ||
]}> | ||
<TabItem value="new"> | ||
|
||
1. Create new project with all required files | ||
|
||
```bash | ||
packer init | ||
``` | ||
|
||
2. Add app password and store url to [packer.env.json](/docs/config/environment) | ||
|
||
3. Create new empty theme on shopify | ||
|
||
```bash | ||
packer theme:create --name=sample-theme-name | ||
``` | ||
|
||
4. Install packages | ||
|
||
```bash | ||
yarn install | ||
``` | ||
|
||
5. Deploy files and start working | ||
|
||
```bash | ||
packer start | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="existing"> | ||
|
||
1. Initialize Packer and import a repo from a remote source. Packer will pull the latest release and fail if the repo has no releases. | ||
|
||
```bash | ||
packer init [--repo=hayes0724/packer-blank-theme] | ||
``` | ||
|
||
2. Install packages | ||
|
||
```bash | ||
yarn install | ||
``` | ||
|
||
3. Deploy files and start working | ||
|
||
```bash | ||
packer start | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
:::caution | ||
|
||
For the local server to function properly you must have SSL setup properly. | ||
See the docs on [HTTPS & SSL](ssl.md). | ||
|
||
::: | ||
|
||
:::info Development mode | ||
|
||
Developers wanting to share an instance of their store with other developers are | ||
often confused when they see their store appear broken. | ||
Because CSS and JavaScript are being served locally, your theme won’t function on any | ||
machine other than the one the Express server is currently running on until your run deploy. | ||
|
||
::: | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.