# Listara production (Linux) — copy to deploy/deploy.conf.listara # cp deploy/deploy.conf.listara.example deploy/deploy.conf.listara # # Deploy from local Ubuntu: # DEPLOY_CONFIG=deploy/deploy.conf.listara ./deploy.sh # Or use shortcut: Deploy-Productie-Listara.desktop DEPLOY_PLATFORM="linux" DEPLOY_HOST="192.166.82.76" DEPLOY_HOSTNAME="listara.online" DEPLOY_USER="root" DEPLOY_PORT="22" # Laravel app root on Listara (rsync target) DEPLOY_PATH="/opt/apps/main-updater" # --- SSH key (generated on local machine: ./deploy.sh setup-ssh) --- SSH_KEY_PATH="deploy/keys/deploy_ed25519" SSH_KNOWN_HOSTS="deploy/keys/known_hosts" # --- Build (local Ubuntu, before rsync) --- RUN_BUILD="true" COMPOSER_BIN="composer" NODE_BIN="npm" SKIP_COMPOSER_DEV="true" SKIP_FRONTEND_BUILD="true" COMPOSER_INSTALL_EXTRA_FLAGS="--ignore-platform-reqs" LOCAL_MYSQLDUMP_BIN="/opt/lampp/bin/mysqldump" # --- Rsync --- RSYNC_DELETE="true" RSYNC_COMPRESS="true" DRY_RUN="false" # --- Protected on production (never overwrite) --- PROTECTED_ENV_FILES=".env .env.production .env.local" # --- File backup on Listara before deploy --- BACKUP_ENABLED="true" BACKUP_DIR="deploy-backups" BACKUP_KEEP="5" # --- DATABASE: migrations (schema) — runs on every deploy --- RUN_REMOTE_MIGRATIONS="true" REMOTE_DB_BACKUP_BEFORE_MIGRATE="true" REMOTE_DB_HOST="127.0.0.1" REMOTE_DB_PORT="3306" REMOTE_DB_DATABASE="main_updater" REMOTE_DB_USERNAME="main_updater" REMOTE_DB_PASSWORD="CHANGE_ME" # --- DATABASE: push DB (local → production) --- DB_PUSH_MODE="merge" DB_PUSH_EXCLUDE_TABLES="users,user_roles,user_conversations,user_messages,user_ip_logs,kyc_information,kyc_types,subscription_histories,password_reset_tokens,personal_access_tokens,guest_logins,admins,admin_roles,listings,listing_translations,listing_galleries,listing_reports,listing_promotions,listing_promotion_orders,listing_option_values,products,product_translations,product_galleries,product_reviews,orders,order_details,carts,bookings,job_requests,reviews,wishlists,blog_comments,contact_messages,support_tickets,ticket_messages,subscribers" # --- DATABASE: reference data sync (local → production) --- # true doar când sincronizați categorii/orașe/meniuri din local — nu la fiecare release de cod DB_SYNC_REFERENCE_DATA="false" DB_SYNC_TABLES="categories,category_translations,sub_categories,sub_category_translations,child_categories,child_category_translations,category_option_groups,category_option_group_translations,category_options,category_option_translations,features,feature_translations,cities,city_translations,city_districts,city_district_translations,counties,county_translations,menus,menu_item_translations,menu_translations,about_us,home_pages,sliders,testimonials,ecom_banners,ads_banners" # true = la deploy, urcă pe CDN imaginile setate local (categorii, orașe, Despre noi, bannere) înainte de DB sync REFERENCE_MEDIA_SYNC="false" LOCAL_PHP_BINARY="php" REFERENCE_MEDIA_DRY_RUN="false" # --- Cache clear on production after deploy --- RUN_REMOTE_CACHE_CLEAR="true" # Sync CSS/JS to S3/CDN after deploy RUN_CDN_STATIC_SYNC="true" # Post-deploy on Listara (permissions, nginx, scheduler) REMOTE_POST_DEPLOY="bash /opt/apps/main-updater/deploy/linux/post-deploy.sh"