pixelbrackets / pap-skeleton
PHP App Publication - Skeleton Projekt
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires (Dev)
- pixelbrackets/pap: ^9.0
This package is auto-updated.
Last update: 2024-11-24 19:07:56 UTC
README
This guide explains how to build and deploy the app.
The toolchain is set up with PAP.
Requirements
- cURL, SSH & rsync to sync files
- Git to checkout package repositories
- PHP to run the script
- Composer to fetch required PHP packages
- SSH-Account on target stage(s) with read & write access, and right to run cURL, rsync and PHP
apt-get install curl ssh rsync git php wget https://getcomposer.org/composer.phar
Installation
- Fetch required PHP packages running
./composer.phar install
Usage
- Run
./vendor/bin/pap
to see all available tasks - Add
--help
to each task command, to see all available options - Add
--simulate
to each task command, to run in dry-mode first - Most tasks have a stage as target, passed with
--stage <stagename>
- If no stagename is passed, the name »local« is used as default - use this for development on your local machine
-
Deploy to »live« stage
./vendor/bin/pap deploy --stage live
-
Deploy to »local« stage, used for development (default stage)
./vendor/bin/pap deploy
-
Sync to »local« stage (skips building assets)
./vendor/bin/pap sync
-
Sync to »local« stage automatically if anything changes in the source directory (files changed, added or removed)
./vendor/bin/pap watch
-
Lint current build
./vendor/bin/pap lint
Configuration
- All general settings and shared stages are configured in
the distribution file
pap.yml
- All settings and stages may be overriden in a local environment file
pap.local.yml
, which is ignored by Git- Copy
pap.local.template.yml
, rename it topap.local.yml
and change parameters as desired
- Copy
- The documentation of all options is available in the PAP package repository
Update
- Update required PHP packages running
./composer.phar update
- Commit the updated
composer.lock
file
Upgrade
- Check the PAP package repository for new releases, and the upgrade guide