{"id":60600,"date":"2024-03-11T09:49:48","date_gmt":"2024-03-11T04:19:48","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=60600"},"modified":"2024-06-10T15:33:11","modified_gmt":"2024-06-10T10:03:11","slug":"setup-adobe-commerce-on-cloud","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/setup-adobe-commerce-on-cloud\/","title":{"rendered":"Setup Adobe Commerce on Cloud"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Adobe Commerce is an enterprise-level eCommerce platform that is flexible and scalable. It lets businesses create personalized B2B and B2C online stores. But before businesses can set up their online store on Adobe Commerce, it has to be set up first!\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this two-part blog series, we\u2019ll delve into the setup of Adobe Commerce on Cloud infrastructure. Additionally, we&#8217;ll also explore the development process on a high level. This very blog will exclusively cover the setup part, and the development process will be covered in the next part of the same series, hence stay tuned.<\/span><\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">To set up Adobe Commerce, the essential requirement is configuring the <\/span><b>SSH keys<\/b><span style=\"font-weight: 400;\">. For that, create an SSH key and configure it in the <\/span><b><i>Account Settings<\/i><\/b><span style=\"font-weight: 400;\"> tab in your <a href=\"https:\/\/accounts.magento.cloud\/\">Magento Account<\/a><\/span><span style=\"font-weight: 400;\">.\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The next important step is to clone the project; you can find the clone command below, or you can refer <em>screenshot<\/em>,<\/span><\/span><\/li>\n<\/ol>\n<p style=\"padding-left: 80px;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><strong><i>git clone &#8211;branch master &lt;project_id&gt;@&lt;git_repo_name&gt;.git dev<\/i><\/strong><\/span><\/span><\/p>\n<div id=\"attachment_60599\" style=\"width: 580px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-60599\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-60599 size-full\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2024\/03\/1.png\" alt=\"GIT Clone command\" width=\"570\" height=\"425\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/03\/1.png 570w, \/blog\/wp-ttn-blog\/uploads\/2024\/03\/1-300x224.png 300w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/><p id=\"caption-attachment-60599\" class=\"wp-caption-text\">GIT Clone command<\/p><\/div>\n<h2><strong>Setup Master Environment<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">When you access your project from the <\/span><b><i>Projects<\/i><\/b><span style=\"font-weight: 400;\"> tab, the default environment is <\/span><b>Master<\/b><span style=\"font-weight: 400;\">. Installing Magento on this environment involves SSHing into the Master. You can install it from this source if you don&#8217;t have Cloud CLI<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To SSH into the Master environment, copy the command from the Project console, which should look like this,<\/span><\/p>\n<pre style=\"padding-left: 40px;\"><em>magento-cloud ssh --project &lt;project-code&gt;--environment master \u00a0 --app mymagento<\/em><\/pre>\n<p>&nbsp;<\/p>\n<div id=\"attachment_60598\" style=\"width: 635px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-60598\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-60598 size-large\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2024\/03\/2-1024x339.png\" alt=\"Cloud SSH Command\" width=\"625\" height=\"207\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/03\/2-1024x339.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2024\/03\/2-300x99.png 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/03\/2-768x254.png 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/03\/2-624x207.png 624w, \/blog\/wp-ttn-blog\/uploads\/2024\/03\/2.png 1269w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><p id=\"caption-attachment-60598\" class=\"wp-caption-text\">Cloud SSH Command<\/p><\/div>\n<p><span style=\"font-weight: 400;\">Now that we&#8217;ve accessed the Master environment, it&#8217;s time to install Magento. We&#8217;ve previously covered Magento installation in one of our earlier <\/span><a href=\"https:\/\/www.tothenew.com\/blog\/step-by-step-tutorial-on-setting-up-adobe-commerce-with-venia-store\/\"><span style=\"font-weight: 400;\">blog posts<\/span><\/a><span style=\"font-weight: 400;\">, where we had also set up the Venia store. Here, I&#8217;ll share the command; feel free to customize it with your details and execute it.<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><b>NOTE: <\/b><\/span><span style=\"font-weight: 400;\">Make sure you update the <\/span><b><i>base-url<\/i><\/b><span style=\"font-weight: 400;\"> value with the <\/span><b><i>HTTP URL<\/i><\/b><span style=\"font-weight: 400;\"> of your Master env, which can be found here <em>(see screenshot)<\/em>,<\/span><\/p>\n<div id=\"attachment_60597\" style=\"width: 635px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-60597\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-60597 size-large\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2024\/03\/3-1024x339.png\" alt=\"Environment URLs\" width=\"625\" height=\"207\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/03\/3-1024x339.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2024\/03\/3-300x99.png 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/03\/3-768x254.png 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/03\/3-624x207.png 624w, \/blog\/wp-ttn-blog\/uploads\/2024\/03\/3.png 1269w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><p id=\"caption-attachment-60597\" class=\"wp-caption-text\">Environment URLs<\/p><\/div>\n<pre style=\"padding-left: 40px;\"><i><span style=\"font-weight: 400;\">php bin\/magento setup:install \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0 \u00a0--admin-firstname=admin \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--admin-lastname=admin \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--admin-email=admin@abc.com \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--admin-user=admin \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--admin-password=12345 \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--base-url=<\/span><\/i><b><i>&lt;http URL&gt;<\/i><\/b><i><span style=\"font-weight: 400;\"> \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--db-host=database.internal \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--db-name=dbName \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--db-user=ttn \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--currency=USD \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--timezone=America\/Chicago \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--language=en_US \\\r\n<\/span><\/i><i><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0--use-rewrites=1<\/span><\/i><\/pre>\n<p><span style=\"font-weight: 400;\">Verify the installation by visiting the website.<\/span><\/p>\n<h2><strong>Creating Lower environments<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">We&#8217;ll establish a <\/span><span style=\"font-weight: 400;\"><b>staging environment for conducting production-level testing and a Development<\/b><\/span><span style=\"font-weight: 400;\">\u00a0environment for development purposes. The Staging environment will be generated based on the Master environment.<\/span> <span style=\"font-weight: 400;\">Navigate to the <\/span><b><i>dev<\/i><\/b><span style=\"font-weight: 400;\"> directory inside the <\/span><i><span style=\"font-weight: 400;\">\/var\/www<\/span><\/i><span style=\"font-weight: 400;\"> directory and checkout a new staging branch,<\/span><\/p>\n<pre style=\"padding-left: 40px;\"><strong><i>git checkout -b Staging<\/i><\/strong><\/pre>\n<p><span style=\"font-weight: 400;\">Push the same change to the staging branch,<\/span><\/p>\n<pre style=\"padding-left: 40px;\"><strong><i>git push origin Staging<\/i><\/strong><\/pre>\n<p><span style=\"font-weight: 400;\">The environment is not active yet. To activate it, run the following command,<\/span><\/p>\n<pre style=\"padding-left: 40px;\"><em><strong>magento-cloud environment:activate Staging<\/strong><\/em><\/pre>\n<p><span style=\"font-weight: 400;\">You can check its activation status from the console,<\/span><\/p>\n<div id=\"attachment_60596\" style=\"width: 580px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-60596\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-60596 size-full\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2024\/03\/4.png\" alt=\"Environment Info\" width=\"570\" height=\"425\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/03\/4.png 570w, \/blog\/wp-ttn-blog\/uploads\/2024\/03\/4-300x224.png 300w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/><p id=\"caption-attachment-60596\" class=\"wp-caption-text\">Environment Info<\/p><\/div>\n<p><span style=\"font-weight: 400;\">One good thing is, that we do not have to install Magento again in this environment. Similarly, <\/span><span style=\"font-weight: 400;\">follow the steps above to create a Dev environment.<\/span><\/p>\n<h2><strong>Setup Local Magento<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">For our code development, we would need Magento on our local server and in a separate directory; you can name the folder anything. Some dependencies can be used to install Magento on local servers, such as Apache, MySQL, and PHP. We have already covered in detail how to install those in our <\/span><a href=\"https:\/\/www.tothenew.com\/blog\/step-by-step-tutorial-on-setting-up-adobe-commerce-with-venia-store\/\"><span style=\"font-weight: 400;\">previous blog<\/span><\/a>; you<span style=\"font-weight: 400;\">\u00a0can refer to that.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To summarize, this blog covered the setup of Adobe Commerce on Cloud, addressing SSH key configuration, Magento installation on the Master environment, and the establishment of lower environments for staging and development. Expect more insights in the upcoming part of the series. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Stay tuned for the next part of this blog, in which we will delve into the development processes!<\/span><\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>Adobe Commerce is an enterprise-level eCommerce platform that is flexible and scalable. It lets businesses create personalized B2B and B2C online stores. But before businesses can set up their online store on Adobe Commerce, it has to be set up first!\u00a0 In this two-part blog series, we\u2019ll delve into the setup of Adobe Commerce on [&hellip;]<\/p>\n","protected":false},"author":1383,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":25},"categories":[5868,4308],"tags":[5061,5059,4847,2838,911],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/60600"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1383"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=60600"}],"version-history":[{"count":2,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/60600\/revisions"}],"predecessor-version":[{"id":60755,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/60600\/revisions\/60755"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=60600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=60600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=60600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}