Skip to content

Commit 40e1328

Browse files
Merge pull request #41 from villepietarinen/create-project-2
Wizard for creating a new local (wordpress) project
2 parents 60ed314 + 39adbc7 commit 40e1328

File tree

2 files changed

+460
-5
lines changed

2 files changed

+460
-5
lines changed

README.md

100644100755
Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,30 @@ $ docker ps -a
8686
8787
# Open bash into any container
8888
$ docker exec -it $CONTAINER_ID bash
89+
90+
# Create new project (interactive wizard for setting up project)
91+
$ gdev create
92+
```
93+
94+
## Creating new project
95+
Before creating a new project you should setup a GIT repository for your new project.
96+
97+
It's also advisable to create a config file to your home directory with some default values. File should be named ~/.gdev/gdevconf.yml
98+
99+
Example gdevconf.yml:
100+
```
101+
create:
102+
defaults:
103+
wordpress:
104+
# Flynn stage cloud address
105+
stage: stage.yourdomain.com
106+
# Flynn production cloud address
107+
production: production.yourdomain.com
108+
smtp_host: "172.17.0.1"
109+
components: "dustpress"
110+
theme: "[email protected]:devgeniem/wp-starter-dustpress-theme.git"
111+
nodejs: TODO
112+
silverbullet: TODO
89113
```
90114

91115
## Workflow
@@ -105,6 +129,8 @@ To resolve this delete stopped containers, dangling images and dangling volumes.
105129
$ gdev cleanup
106130
```
107131

132+
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).
133+
108134
#### When in doubt, update and restart everything
109135

110136
To update all containers and settings run following global commands:
@@ -129,6 +155,7 @@ $ gdev reload
129155

130156
* [Nicholas Silva](https://github.com/silvamerica), creator.
131157
* [Onni Hakala](https://github.com/onnimonni), forked the gdev version.
158+
* [Ville Pietarinen](https://github.com/villepietarinen), initial sync and create commands, fixes and development.
132159

133160
## Contributing
134161

@@ -142,4 +169,4 @@ $ gdev reload
142169

143170
`gdev` is available under the MIT license. See the LICENSE file for more info.
144171

145-
Copyright 2016 Geniem Oy.
172+
Copyright 2017 Geniem Oy.

0 commit comments

Comments
 (0)