Skip to content

Commit d9e7811

Browse files
committed
docs: move the user guide description to READKME
1 parent 934b088 commit d9e7811

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# CodeIgniter DevKit
2+
23
Development toolkit for CodeIgniter libraries and projects
34

45
## Installation
@@ -150,3 +151,41 @@ your code drops a dependency, so this workflow will help track those down.
150151
Besides the template files, this repo includes some examples for integrating CodeIgniter
151152
with other third-party resources. These files (in **Examples/**) may change over time and
152153
should not be relied on for anything more than a reference for your own code.
154+
155+
## Hosting with Vagrant
156+
157+
> **Note**
158+
> The `Vagrantfile.dist` is unmaintained. It does not work now.
159+
> Contributions are welcome.
160+
161+
Virtualization is an effective way to test your webapp in the environment you
162+
plan to deploy on, even if you develop on a different one.
163+
Even if you are using the same platform for both, virtualization provides an
164+
isolated environment for testing.
165+
166+
The codebase comes with a **src/Vagrantfile.dist**, that can be copied to **Vagrantfile**
167+
and tailored for your system, for instance enabling access to specific database or caching engines.
168+
169+
### Setting Up
170+
171+
It assumes that you have installed [VirtualBox](https://www.virtualbox.org/wiki/Downloads) and
172+
[Vagrant](https://www.vagrantup.com/downloads.html)
173+
for your platform.
174+
175+
The Vagrant configuration file assumes you have set up a [ubuntu/bionic64 Vagrant box](https://app.vagrantup.com/ubuntu/boxes/bionic64) on your system:
176+
177+
```console
178+
> vagrant box add ubuntu/bionic64
179+
```
180+
181+
### Testing
182+
183+
Once set up, you can then launch your webapp inside a VM, with the command:
184+
185+
```console
186+
> vagrant up
187+
```
188+
189+
Your webapp will be accessible at http://localhost:8080, with the code coverage
190+
report for your build at http://localhost:8081 and the user guide for
191+
it at http://localhost:8082.

0 commit comments

Comments
 (0)