Skip to content

Commit

Permalink
Merge branch 'release/3.1.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jan 31, 2019
2 parents 22a9b20 + 74da242 commit d7d9166
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/web/assets/pluginstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,32 @@
### Dev Server

To get started with local development for the Plugin Store resources, you need to:

1. Copy all of the environment variables from `/src/web/assets/pluginstore/.env.example` to a `/web/craftnetresources/id/.env` file.
2. In your `.env` file, make sure that the paths to your SSL key and certificate are correct:

DEV_SERVER_SSL_KEY="../../../../../../ssl/pluginstore.dev.key"
DEV_SERVER_SSL_CERT="../../../../../../ssl/pluginstore.dev.crt"
3. Make sure `devMode` is enabled in `config/general.php`:

<?php

return [
'devMode' => true,
];
4. Tell the Plugin Store to use the dev server to serve resources in `config/app.php`:

<?php

return [
'components' => [
'pluginStore' => [
'class' => craft\services\PluginStore::class,
'useDevServer' => true,
],
],
];


#### Customizing the dev server

Expand All @@ -27,6 +48,7 @@ By default, the dev server will be set up to work with `https://localhost:8082/`
'components' => [
'pluginStore' => [
'class' => craft\services\PluginStore::class,
'useDevServer' => true,
'devServerManifestPath' => 'https://localhost:8089',
'devServerPublicPath' => 'https://localhost:8089',
],
Expand Down

0 comments on commit d7d9166

Please sign in to comment.