forked from onnimonni/dash
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from villepietarinen/create-project-2
Wizard for creating a new local (wordpress) project
- Loading branch information
Showing
2 changed files
with
460 additions
and
5 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 |
---|---|---|
|
@@ -86,6 +86,30 @@ $ docker ps -a | |
# Open bash into any container | ||
$ docker exec -it $CONTAINER_ID bash | ||
# Create new project (interactive wizard for setting up project) | ||
$ gdev create | ||
``` | ||
|
||
## Creating new project | ||
Before creating a new project you should setup a GIT repository for your new project. | ||
|
||
It's also advisable to create a config file to your home directory with some default values. File should be named ~/.gdev/gdevconf.yml | ||
|
||
Example gdevconf.yml: | ||
``` | ||
create: | ||
defaults: | ||
wordpress: | ||
# Flynn stage cloud address | ||
stage: stage.yourdomain.com | ||
# Flynn production cloud address | ||
production: production.yourdomain.com | ||
smtp_host: "172.17.0.1" | ||
components: "dustpress" | ||
theme: "[email protected]:devgeniem/wp-starter-dustpress-theme.git" | ||
nodejs: TODO | ||
silverbullet: TODO | ||
``` | ||
|
||
## Workflow | ||
|
@@ -105,6 +129,8 @@ To resolve this delete stopped containers, dangling images and dangling volumes. | |
$ gdev cleanup | ||
``` | ||
|
||
If Docker for Mac still has a bug with freeing up disk space, dump databases you need and reset Docker for Mac settings. This will free all the space Docker is hogging. Then you will need to set up your projects again (import databases). | ||
|
||
#### When in doubt, update and restart everything | ||
|
||
To update all containers and settings run following global commands: | ||
|
@@ -129,6 +155,7 @@ $ gdev reload | |
|
||
* [Nicholas Silva](https://github.com/silvamerica), creator. | ||
* [Onni Hakala](https://github.com/onnimonni), forked the gdev version. | ||
* [Ville Pietarinen](https://github.com/villepietarinen), initial sync and create commands, fixes and development. | ||
|
||
## Contributing | ||
|
||
|
@@ -142,4 +169,4 @@ $ gdev reload | |
|
||
`gdev` is available under the MIT license. See the LICENSE file for more info. | ||
|
||
Copyright 2016 Geniem Oy. | ||
Copyright 2017 Geniem Oy. |
Oops, something went wrong.