Files
avives 1f72193a64
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
- Base: wintercms/winter branch 1.2 (full framework)
- Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS
- Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication
- Partials: hero (offline-first), features, modes (offline/nube toggle),
  screenshots, pricing (3 planes), comparison, FAQ, CTA
- Plugin VivesPOS.Site with ContactForm
- Dockerfile: PHP 8.2 Apache, port 80, healthcheck
- Added winter/wn-pages, blog, sitemap, seo plugins
- Active theme set to vivespos
2026-08-21 19:29:00 -06:00

52 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ ! -d "${PWD}/vendor" ] && [ ! -f "${PWD}/composer.lock" ]; then
echo "### Updating Composer dependencies"
php ${PWD}/.devcontainer/local-features/bootstrap-winter/update-composer.php
composer update --no-interaction --no-scripts --no-audit
fi
if [ ! -f "${PWD}/.env" ]; then
echo "### Generating .env file"
php artisan winter:env -q
php artisan key:generate -q
fi
if [ "${DB_CONNECTION}" = "sqlite" ] && [ "${DB_DATABASE}" = "${PWD}/storage/database.sqlite" ] && [ ! -f "${PWD}/storage/database.sqlite" ]; then
SETUP_ADMIN=true
echo "### Creating SQLite database"
touch storage/database.sqlite
fi
echo "### Run migrations"
php artisan migrate
echo "### Set theme"
php artisan theme:use workshop
if [ "${SETUP_ADMIN}" = true ]; then
echo "### Setup admin"
php artisan winter:passwd admin admin
fi
echo "### Ignoring files in Git"
echo "plugins/*" >> "${PWD}/.git/info/exclude"
echo "themes/*" >> "${PWD}/.git/info/exclude"
echo "composer.json" >> "${PWD}/.git/info/exclude"
git update-index --assume-unchanged composer.json
git restore config
cp ${PWD}/.devcontainer/.vscode/launch.json ${PWD}/.vscode/launch.json
echo "### Mirror site to public directory"
php artisan winter:mirror public
if [ "${CODESPACES}" = "true" ]; then
echo "### Configure for Codespaces"
php ${PWD}/.devcontainer/local-features/bootstrap-winter/codespaces.php
git update-index --assume-unchanged config/app.php
gh codespace ports visibility 8000:public -c $CODESPACE_NAME
fi