-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2.2.8' into craft-webpack
- Loading branch information
Showing
6 changed files
with
66 additions
and
16 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
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 |
---|---|---|
|
@@ -47,7 +47,7 @@ Make sure that `PATH` is the path to your project, including the name you want f | |
|
||
composer create-project nystudio107/craft craft3 | ||
|
||
## Setting Local Dev | ||
## Setting Up Local Dev | ||
|
||
You'll need Docker desktop for your platform installed to run the project in local development | ||
|
||
|
@@ -56,12 +56,12 @@ You'll need Docker desktop for your platform installed to run the project in loc | |
* Start up the site with `docker-compose up` (the first build will be somewhat lengthy) | ||
* On the first time setting it up, the `craft_php_1` container will fail; this is normal | ||
* Import the `seed_db.sql` database dump the first time from the `scripts/` dir with `./docker_restore_db.sh seed_db.sql` | ||
* Then hit ^C (Control-C) to stop the Docker containers, and restart them with `docker-compose up` and `craft_php_1` should then work properly, since the db has been seeded | ||
* Then hit `^C` (Control-C) to stop the Docker containers, and restart them with `docker-compose up` and `craft_php_1` should then work properly, since the db has been seeded | ||
* Navigate to `http://localhost:8000` to use the site; the `webpack-dev-server` runs off of `http://localhost:8080` | ||
|
||
The CP login credentials are initially set as follows: | ||
|
||
Login: `[email protected]` | ||
Login: `[email protected]` \ | ||
Password: `letmein` | ||
|
||
Obviously change these to whatever you like as needed | ||
|
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,19 @@ | ||
<?php | ||
/** | ||
* Yii Console Application Config | ||
* | ||
* Edit this file at your own risk! | ||
* | ||
* The array returned by this file will get merged with | ||
* vendor/craftcms/cms/src/config/app.php and app.[web|console].php, when | ||
* Craft's bootstrap script is defining the configuration for the entire | ||
* application. | ||
* | ||
* You can define custom modules and system components, and even override the | ||
* built-in system components. | ||
* | ||
* This application config is applied only for *only* console requests | ||
*/ | ||
|
||
return [ | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* Yii Web Application Config | ||
* | ||
* Edit this file at your own risk! | ||
* | ||
* The array returned by this file will get merged with | ||
* vendor/craftcms/cms/src/config/app.php and app.[web|console].php, when | ||
* Craft's bootstrap script is defining the configuration for the entire | ||
* application. | ||
* | ||
* You can define custom modules and system components, and even override the | ||
* built-in system components. | ||
* | ||
* This application config is applied only for *only* web requests | ||
*/ | ||
|
||
return [ | ||
'components' => [ | ||
'session' => [ | ||
'class' => \yii\redis\Session::class, | ||
'redis' => [ | ||
'hostname' => getenv('REDIS_HOSTNAME'), | ||
'port' => getenv('REDIS_PORT'), | ||
'database' => getenv('REDIS_CRAFT_DB'), | ||
], | ||
'as session' => [ | ||
'class' => \craft\behaviors\SessionBehavior::class, | ||
], | ||
], | ||
], | ||
]; |
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