mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-13 16:54:48 +00:00
chore: update dev scripts and mock configuration
- Improve hot-dev script - Add sync-production-config script - Update toggle-mock script - Update mock environment
This commit is contained in:
parent
5efd1591ca
commit
66e8460196
4 changed files with 51 additions and 14 deletions
|
|
@ -11,6 +11,13 @@ DEV_DIR=${DEV_DIR:-"/opt/pulse/tmp/dev-config"}
|
|||
mkdir -p "$DEV_DIR"
|
||||
chmod 700 "$DEV_DIR"
|
||||
|
||||
# If production config is missing, skip sync and let dev config stand alone.
|
||||
if [ ! -d "$PROD_DIR" ]; then
|
||||
echo "⚠ Production config directory not found: $PROD_DIR"
|
||||
echo "✓ Skipping production sync; using dev-only config in $DEV_DIR"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Copy essential production config files to dev
|
||||
# Skip session/csrf/alert files which are runtime-specific
|
||||
echo "Syncing production config to dev environment..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue