Deployment
Last updated
Was this helpful?
This page covers essential steps for deploying an application to ACC. It includes configuring environment variables, adding a remote repository, creating a tag, building the application, and deploying it on ACC.
Before initiating your application's deployment to ACC, it is important to set up the necessary environment variables. Please ensure you have added the following variables to your application before your first deployment:
NEXT_PUBLIC_URL: The website's URL, accessible from the ACC dashboard.
NEXTAUTH_URL: The website's URL, identical to NEXT_PUBLIC_URL.
NEXTAUTH_SECRET: A secret string for session encryption, generated from any online tool.
CACHE_SECRET: A secret string for encrypting Redis cache requests. Generate this using any online tool; without it, Redis cache may not function properly.
For deploying your application to ACC, the addition of a remote repository is required. Obtain the URL of the remote repository from the ACC dashboard.
Run the following command to add the remote repository:
git remote add acc <acc-repository-url>For deploying your application to ACC, create a tag within your repository. Ensure all changes are committed before proceeding.
Run the following command to create a tag:
Then, push the tag to the remote repository:
Navigate to My Applications > {Your Application} > Builds. Click the Build button. Enter the tag name created in the previous step and click Build button.
Upon successful completion of the build, initiate the deployment by providing the same tag name and clicking the Deploy button.
Last updated
Was this helpful?
Was this helpful?
git tag <tag-name>git push acc <tag-name>
