If you are implementing the Aconcagua release of SCA or later, best practice is to use themes and extensions to extend your website. You deploy your theme and extension to an account, where it is available for activation. See Themes & Extensions for details on installing and activating themes and extensions. See Developer Tools for information on using the theme and extension developer tools.
If you are implementing SuiteCommerce Advanced and not using themes and extensions deploy code to a specific website. You can deploy a website to the local server or to your NetSuite account.
If you are implementing themes and extensions on an SCA site using the Aconcagua release or later, you do not deploy to a specific site. Any published themes and extensions area available as bundled SuiteApps. After these are installed, they can be activated for any domain on multiple sites.
To create and deploy custom websites (not using themes and extensions):
Install the developer tools and download the SuiteCommerce Advanced source code. See Core SuiteCommerce Advanced Developer Tools for more information.
Create any custom modules required for each website. Create a Custom Module for more information.
In the top-level directory of the SuiteCommerce Advanced source code, create the following:
Within each site-specific subdirectory, create a custom distro.json.
You can use the default distro.json file as a template. Your custom distro.json for each website points to the following:
Deploy your website.
To deploy a specific website, perform the following:
Navigate to the site-specific subdirectory for the website you want to deploy.
Deploy the website locally or to your NetSuite account.
You can deploy your website locally using gulp local or to your NetSuite account using gulp deploy. See Deploy to NetSuite and SCA on a Local Server for more information.
When deploying from a site-specific subidrectory, the gulp task creates the corresponding DeployDistribution and LocalDistribution directories within the site-specific directory. The compiled application files for the website are contained in these directories.