# Hey Vue Basel 👋 --- ## Building a shop with over a million products. --- ## Who am I? --- 🏷 Ruslan --- 📍 Pratteln --- 👨‍💻 Web Developer --- ❤️ tabs but forced to use spaces --- ## What to expect? --- ![](https://i.imgur.com/UGr34J9.jpg) --- ## One good reason for Apollo --- ### Demo Time --- ## Vercel and the limits --- 1. Reduce the bandwith 1. Upgrade to the `enterprise` plan 1. We have to say goodbye --- ## Self hosting --- ### Unique folder release name ```bash RELEASE_NAME=$(date "+%Y%m%d-%H%M%S") ``` --- ### 1. Unique folder release name ```bash 20220224-195542 ``` --- ### 2. Clone the repo ```bash cd $FORGE_SITE_PATH/releases git clone -b main git@github.com:eldar/store.git $RELEASE_NAME ``` --- ### 2. Clone the repo ```bash cd $FORGE_SITE_PATH/releases git clone -b main git@github.com:eldar/store.git $RELEASE_NAME ``` ```bash releases/20220224-1940042 ``` --- ### 3. Build ```bash yarn install --frozen-lockfile yarn build ``` --- ### 4. Reload ```bash ln -snf $FORGE_SITE_PATH/releases/$RELEASE_NAME $FORGE_SITE_PATH/current pm2 reload eldar.ch ``` --- ### 🚀 Zero downtime deployment --- ## What would I change when I would redo everything? --- ![](https://i.imgur.com/YWWA842.jpg) --- - Go back to monolith - Single repository - Single deployment - No need for special authentication --- # 💋 KISS ### Keep It Simple, Stupid --- ## Summary --- ## One more thing! --- # Eldar is hiring! --- # Thank you 🙏
{"metaMigratedAt":"2023-06-16T20:00:55.800Z","metaMigratedFrom":"YAML","title":"Building a shop with over a million products. Things I learned","breaks":true,"contributors":"[{\"id\":\"9603794b-4bc6-4c04-b105-7f0e8121d7e5\",\"add\":3753,\"del\":2171}]"}
    150 views