Loading...

Getting started

In Front End Hosting - Basic, one Static Site application such as Static Site Generator (SSG) is provisioned with three environments:

  • Development (Dev)

  • Staging (Stg)

  • Production (Prod) 

Viewing an application

  1. Sign in to the Cloud Platform user interface.
  2. In the top menu, click Develop.
  3. Select your organization.
  4. Select an application.
  5. Click View <application name>.

    New environments are provisioned with the default content page.

  6. To verify that a site is working correctly, visit the default URL of a specific environment.

Adding content

  1. Add a public key to your Acquia profile.
  2. Clone the application’s repository.
  3. Configure acquia_config.yaml or acquia_config.yml.

    The acquia_config.yaml or acquia_config.yml file must be located in root folder of your project containing the following configuration:

    output_directory: "out/"
    root_directory: "./"

    Configuration properties:

    • Output directory: This output directory contains build outputs such as HTML, CSS, and JavaScript files, which are served for the Front End Hosting - Basic hosting. The default output directory is html/. This directory can be overridden by specifying the output directory in the acquia_config.yaml or acquia_config.yml file.

    • Root directory: The main directory of your project may not always align with your application's build root. For example, a repository might have a frontend directory, which contains a stand-alone Next.js application. Therefore, you must set the root directory to ensure that the commands are executed from the correct directory of your project.

  4. Create a new branch and push your deployable artifact along with acquia_config.yaml or acquia_config.yml.
  5. Deploy the branch <new-branch> from the Cloud UI.

    For more information, visit Deploying code in the same environment.

Connecting your Git repository to Acquia platform 

  1. Add a public key to your Acquia profile.
  2. Check out a local copy of your code.
  3. Copy your code to a new Git repository.

Front End Hosting - Basic subscription details

For information about viewing your subscription details, visit Viewing subscriptions.

Monitoring a Front End Hosting - Basic site

For information about monitoring a site, visit Using Stack Metrics to monitor activity on your environments.

References

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation