@gv-sh/specgen-app 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # SpecGen App - Complete Platform
2
2
 
3
- [![Version](https://img.shields.io/badge/version-0.7.0-blue.svg)](https://github.com/gv-sh/specgen-app)
3
+ [![Version](https://img.shields.io/badge/version-0.7.1-blue.svg)](https://github.com/gv-sh/specgen-app)
4
4
 
5
5
  A unified deployment package for the SpecGen speculative fiction generator platform. **Optimized for port 80 deployment with low memory usage.**
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gv-sh/specgen-app",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Complete SpecGen application with server, admin, and user interfaces",
5
5
  "main": "index.js",
6
6
  "bin": {
package/scripts/deploy.sh CHANGED
@@ -401,6 +401,17 @@ if [ "$DRY_RUN" = true ]; then
401
401
  else
402
402
  echo "🚀 Starting PM2 deployment..."
403
403
 
404
+ mkdir -p logs
405
+ cp server/.env .env 2>/dev/null || true
406
+
407
+ # Grant Node permission to bind to port 80
408
+ sudo setcap 'cap_net_bind_service=+ep' "$(which node)"
409
+
410
+ # Load environment variables from .env
411
+ set -o allexport
412
+ source .env
413
+ set +o allexport
414
+
404
415
  cat > "$PROJECT_DIR/ecosystem.config.js" << EOF
405
416
  module.exports = {
406
417
  apps: [
@@ -411,7 +422,8 @@ module.exports = {
411
422
  env: {
412
423
  NODE_ENV: 'production',
413
424
  PORT: 80,
414
- HOST: '$BIND_HOST'
425
+ HOST: '$BIND_HOST',
426
+ OPENAI_API_KEY: process.env.OPENAI_API_KEY
415
427
  },
416
428
  instances: 1,
417
429
  exec_mode: 'fork',