Deploy Specific Websites Using SuiteCommerce Tools

Easily deploy custom websites using SuiteCommerce Advanced tools. Follow these steps for setup and deployment without themes or extensions.

·3 min read·View Oracle Docs

TL;DR

Deploying specific websites using SuiteCommerce Advanced (SCA) allows you to create custom sites tailored to your business needs. This article details the steps required to set up and deploy these sites effectively, especially when not utilizing themes and extensions.

Overview

When implementing the Aconcagua release of SuiteCommerce Advanced (SCA) or later, it's advisable to utilize themes and extensions for enhancing your website. However, if you're focusing on custom deployments without these tools, follow the given process.

If using themes and extensions on an SCA website, note that these should not be deployed to a specific site. Instead, themes and extensions can be made available as bundled SuiteApps after installation, enabling activation across multiple domains.

How to Create and Deploy Custom Websites

To successfully create and deploy a custom website without utilizing themes and extensions, follow these steps:

Step 1: Install Developer Tools

Begin by installing the developer tools and downloading the SuiteCommerce Advanced source code. Refer to the documentation on Set Up SCA Developer Tools for comprehensive guidance.

Step 2: Create Custom Modules

For each website you plan to build, create any custom modules you require. Detailed instructions can be found in Create a Custom Module.

Step 3: Organize Source Code

Within the top-level directory of the downloaded SuiteCommerce Advanced source code, do the following:

  • Create a directory named Sites, which should be located at the same directory level as the Modules directory.
  • Within the newly created Sites directory, establish a subdirectory for each individual website you intend to deploy.

Step 4: Configure Distribution File

Inside each site's specific subdirectory, create a custom distro.json file. For this:

  • Utilize the default distro.json as a template.
  • The custom distro.json should refer to:
    • Shared module source code located in suite_commerce.
    • Custom modules outlined in custom_modules.

Step 5: Deploy the Website

To deploy your website, follow these steps:

  1. Navigate to the specific subdirectory of the website you want to deploy.
  2. Execute the deployment:
    • For local deployment, use the command gulp local.
    • To deploy directly to your NetSuite account, utilize gulp deploy.

After executing the deployment task, the corresponding DeployDistribution and LocalDistribution directories will be created within the site-specific directory, containing the compiled application files necessary for the website's operation.

Additional Considerations

  • Themes and Extensions: For customization, consider utilizing themes and extensions available as bundled SuiteApps in later implementations of SCA. This can greatly enhance the visual layout and functionality of your websites.
  • Testing and Validation: Ensure to test your customizations locally before deploying to live environments. This helps in troubleshooting any potential issues early on.

Who This Affects

  • Developers: Those involved in website customization or deployment will benefit from understanding site-specific deployment methods.
  • Administrators: Administrators overseeing website management can apply these best practices for efficient development.

Key Takeaways

  • Custom websites can be deployed without utilizing themes or extensions in SCA.
  • Organize your SuiteCommerce Advanced source code appropriately for deployment.
  • Utilize gulp for local and account deployment effectively.
  • Always test customizations locally before going live.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

Can I deploy themes or extensions to a specific site using SuiteCommerce Advanced?
No, themes and extensions should not be deployed to a specific site. They are meant to be installed as bundled SuiteApps, which can be activated across multiple domains.
What is required to create a directory structure for multiple custom websites in SuiteCommerce Advanced?
Within the SuiteCommerce Advanced source code directory, you need to create a 'Sites' directory at the same level as the 'Modules' directory. Inside this 'Sites' directory, you must establish a separate subdirectory for each individual website you plan to deploy.
How do I configure a custom distribution file for each website in SuiteCommerce Advanced?
Inside each site's specific subdirectory, create a custom `distro.json` file using the default `distro.json` as a template. This file should reference the shared module source code in `suite_commerce` and the custom modules in `custom_modules`.
How can I deploy a website from my local environment to a NetSuite account using SuiteCommerce Advanced?
To deploy from your local environment to a NetSuite account, navigate to the specific subdirectory of the website you want to deploy and execute the `gulp deploy` command. This will upload the compiled application files to your NetSuite account.
Source: Deploy a Specific Website Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in Commerce

View all Commerce articles →