設定本機開發環境
如何設定用於開發 Edge Delivery Services 的本機開發環境。
影片中概述的步驟
-
安裝 AEM CLI
code language-none $ sudo npm install -g @adobe/aem-cli
-
將目錄變更為您的專案目錄,該目錄是使用 AEM 樣板專案範本所建立的 git 存放庫。
code language-none $ git clone git@github.com:my-org/my-project.git $ cd my-project
-
執行 AEM CLI 來啟動本機 AEM 實例。
code language-none $ pwd /Users/my-user/my-project $ aem up ___ ________ ___ __ __ / | / ____/ |/ / _____(_)___ ___ __ __/ /___ _/ /_____ _____ / /| | / __/ / /|_/ / / ___/ / __ `__ \/ / / / / __ `/ __/ __ \/ ___/ / ___ |/ /___/ / / / (__ ) / / / / / / /_/ / / /_/ / /_/ /_/ / / /_/ |_/_____/_/ /_/ /____/_/_/ /_/ /_/\__,_/_/\__,_/\__/\____/_/ info: Starting AEM dev server vx.x.x info: Local AEM dev server up and running: http://localhost:3000/ info: Enabled reverse proxy to https://main--my-project--my-org.hlx.page opening default browser: http://localhost:3000/
-
在您的網頁瀏覽器開啟 http://localhost:3000/,即可查看您的 AEM 網站。
recommendation-more-help
bb44cebf-d964-4e3c-b64e-ce882243fe4d