Update install/upgrade instructions

This commit is contained in:
ポール ウェッブ 2019-03-19 09:25:11 -05:00
parent ef5ac81c6b
commit 721a5ed5c8
3 changed files with 5 additions and 3 deletions

View file

@ -8,7 +8,8 @@ To run this project, you'll need to have either PHP7 or Docker installed, and be
- Install [PHP7](http://php.net/downloads.php)
- Possibly install additional PHP extensions: `curl`, `xml`, `mbstring`, `dom`
- Checkout the project. Be sure to install/update submodules (`git submodule update --recursive --remote`).
- Checkout the project and be sure to install submodules: `git submodule update --init`
- If you have already cloned the project, be sure to update submodules: `git submodule update --recursive --remote`
- Run `./dev.sh` from the project root
- Access [localhost:8000](http://localhost:8000) in your browser

2
dev.sh
View file

@ -18,5 +18,5 @@ fi
$DIR/hooks/install.sh
$PHPBIN composer.phar install
git submodule update --init
$PHPBIN --server localhost:8000 --docroot "$DIR/web" "$DIR/web/index.php"

View file

@ -16,7 +16,8 @@ if (!$force && !file_exists($needsUpdateFile)) {
chdir(ROOT_DIR);
Shell::exec('git fetch && git reset --hard origin/904-unify');
Shell::exec('git fetch && git reset --hard origin/master');
Shell::exec('git submodule update --init');
Shell::exec('git pull --recurse-submodules');
Shell::exec('php composer.phar install');