Create Magento App
Create ScandiPWA AppScandiPWA DocsGitHub
v2
v2
  • Create Magento App
  • Getting started
    • Getting Started
    • Prerequisites
      • Linux requirements
      • MacOS requirements
        • Apple Silicon
      • Windows requirements
    • Available commands
      • Start the application
      • Stop the application
      • Check application status
      • Enter application CLI
      • Explore application logs
      • Execute commands in Docker containers
      • Link a theme
      • Import database dump
      • ⚠️ Uninstall a project
    • Folder structure
    • Updating to New Releases
      • Testing Alpha Releases
    • Configuration File
      • System Configuration File
    • Supported Magento versions
    • How does it work?
    • Limitations
    • What Is New in Version 2
  • Usage guide
    • Using console commands
    • Accessing Docker containers
    • Linking a Scandi Theme
    • Enabling XDebug
    • Enabling SSL
    • Configuring PHP
    • Configuring Multi-Store
    • Configuring NewRelic
    • Access on the local network
    • Using custom domain
    • Using Enterprise Edition
    • Using OpenSearch
    • Importing database
      • Importing remote database
    • Converting legacy Docker setup to CMA
    • Improve Performance
  • Container images
    • PHP Images
      • PHP 8.4
      • PHP 8.3
      • PHP 8.2
      • PHP 8.1
      • PHP 7.4
      • PHP 7.3
      • PHP 7.2
    • ElasticSearch Images
      • ElasticSearch 6.8
  • Scripts Extensions
    • PHP Extensions
      • PHP Extensions Package
      • (deprecated) ionCube Extension
  • Troubleshooting
    • Common Issues
    • CMA Debugging
    • Uninstall CMA
Powered by GitBook
On this page
  • 1. Add domain to the /etc/hosts file
  • 2. Setup CMA

Was this helpful?

  1. Usage guide

Using custom domain

PreviousAccess on the local networkNextUsing Enterprise Edition

Last updated 1 year ago

Was this helpful?

For Multi-Store configuration use

This page is relevant for magento-scripts versions before 2.2.x.

Version 2.2.x is using Multi Store configuration.

1. Add domain to the /etc/hosts file

In order for this config to work you need to add your host domain to the /etc/hosts file, for example:

# /etc/hosts file
127.0.0.1 localhost
127.0.0.1 scandipwa.local # some other domain

2. Setup CMA

Add to your cma.js file field host with your domain:

module.export = {
    magento: { ... },
    host: 'scandipwa.local'
}

That is it! Just now we have setup a domain in our application! Now to apply changes we need to run the command without .

the following guide
start
-s option