Cleanup README file for release
This commit is contained in:
@@ -8,77 +8,28 @@ the old, phpVMS classic, it's [available here](https://github.com/nabeelio/phpvm
|
|||||||
# installation
|
# installation
|
||||||
|
|
||||||
A full distribution, with all of the composer dependencies, is available at this
|
A full distribution, with all of the composer dependencies, is available at this
|
||||||
[tarball link](http://downloads.phpvms.net/phpvms-7.0.0-master.tar.gz). It's currently
|
[GitHub Releases](https://github.com/nabeelio/phpvms/releases) link.
|
||||||
updated with every commit
|
|
||||||
|
|
||||||
### Composer Access
|
The latest documentation, with installation instructions is available
|
||||||
|
[on the phpVMS documentation](http://docs.phpvms.net/) page.
|
||||||
|
|
||||||
run the following commands. for right now, we're running on sqlite. for mysql, set
|
## Requirements
|
||||||
`DB_CONNECTION` to `mysql` in the `env.php` file.
|
|
||||||
|
|
||||||
```bash
|
- PHP 7.0+, extensions:
|
||||||
cp env.php.example env.php
|
- cURL
|
||||||
composer install --no-interaction
|
- JSON
|
||||||
php artisan database:create
|
- mbstring
|
||||||
php artisan migrate:refresh --seed
|
- openssl
|
||||||
```
|
- pdo
|
||||||
|
- tokenizer
|
||||||
|
- Database:
|
||||||
|
- MySQL 5.5+ (or MySQL variant, including MariaDB and Percona)
|
||||||
|
|
||||||
then point your webserver to the `/public` folder.
|
[View more details on requirements](http://docs.phpvms.net/basics/requirements)
|
||||||
|
|
||||||
By default, the Makefile calls the system-wide `composer`. If your host requires a
|
## Installer
|
||||||
certain path or name for composer, add `COMPOSER=` to the front of the `make` command, e.g:
|
|
||||||
|
|
||||||
```bash
|
1. Upload to your server
|
||||||
COMPOSER=composer.phar make install
|
2. Visit the site, and follow the link to the installer
|
||||||
```
|
|
||||||
|
|
||||||
## development environment
|
[View installation details](http://docs.phpvms.net/basics/installation)
|
||||||
|
|
||||||
For development, copy the included `env.php.example` to `env.php` file. By default, it uses sqlite
|
|
||||||
instead of mysql. This makes it much easier to be able to clear the database and new fixtures.
|
|
||||||
|
|
||||||
The easiest way to load locally is to install [Laravel Valet](https://laravel.com/docs/5.5/valet)
|
|
||||||
(if you're running a Mac). Once you install it, go to your phpvms directory, and run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cp env.php.example env.php
|
|
||||||
php artisan key:generate
|
|
||||||
make install # this will install everything
|
|
||||||
valet link phpvms
|
|
||||||
```
|
|
||||||
|
|
||||||
Now going to [http://phpvms.dev](http://phpvms.dev) should work. If you want to use mysql,
|
|
||||||
follow the valet directions on installing mysql (`brew install mysql`) and then update the
|
|
||||||
`env.php` file to point to the mysql.
|
|
||||||
|
|
||||||
The default username and password are "admin@phpvms.net" and "admin".
|
|
||||||
To see the available users in the development environment, [see this file](https://github.com/nabeelio/phpvms/blob/master/database/seeds/dev.yml#L10)
|
|
||||||
|
|
||||||
### creating/resetting the environment
|
|
||||||
|
|
||||||
I use Makefiles to be able to quickly setup the environment.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# to do an initial setup of the composer deps and install the DB
|
|
||||||
make install
|
|
||||||
```
|
|
||||||
|
|
||||||
Then to reset the database/clear cache, use:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
make reset
|
|
||||||
```
|
|
||||||
|
|
||||||
### database seeding
|
|
||||||
|
|
||||||
There is a `database/seeds/dev.yml` which contains the initial seed data that can be used
|
|
||||||
for testing. For production use, there is a `prod.yml` file. The `make reset` handles seeding
|
|
||||||
the database with the data from the `dev.yml`.
|
|
||||||
|
|
||||||
# updating
|
|
||||||
|
|
||||||
extract files and run the migrations:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
php artisan migrate
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user