Skip to content

Commit a1871ca

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

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 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,42 @@ 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](
176+
<https://app.vagrantup.com/ubuntu/boxes/bionic64) on your system:
177+
178+
```console
179+
> vagrant box add ubuntu/bionic64
180+
```
181+
182+
### Testing
183+
184+
Once set up, you can then launch your webapp inside a VM, with the command:
185+
186+
```console
187+
> vagrant up
188+
```
189+
190+
Your webapp will be accessible at http://localhost:8080, with the code coverage
191+
report for your build at http://localhost:8081 and the user guide for
192+
it at http://localhost:8082.

0 commit comments

Comments
 (0)