Upload Build File
Nife allows users to deploy static websites easily through the Deploy Site interface. Static sites typically consist of frontend files such as HTML, CSS, JavaScript, and other assets that are served directly to users.
The platform provides multiple deployment methods so users can choose the one that best fits their workflow. Depending on how your project is prepared, you can deploy a site using one of the following methods:
- Upload Build File
- Build from Source
- Upload from Git
Each method allows you to deploy your application quickly while managing deployments within your organization.
Accessing the Deploy Site Page
Before deploying a site, you need to open the Deploy App interface.
Steps to Access Deploy Site
- Log in to the Nife Launch Platform.
- Navigate to the Application button on the sidebar.
- Locate and click the +Deploy App option.
Once you click on +Deploy App button, you will be redirected the respective page where you are supposed to click on static site button in order to deploy a static site.
This page provides different deployment methods that allow you to deploy your static site based on your project setup which furthers gives us the option to enter the desired site name & choose which organization we want to deploy our static site in.
Upload Build File
The Upload Build File method is used when your application has already been built locally and you have the production-ready files available. In this method, the compiled output of your project is uploaded directly to the platform as a compressed archive.
This approach is commonly used for frontend frameworks where the project build process generates optimized static files. These files typically include HTML pages, bundled JavaScript, compiled CSS, and other static assets required for the application to run in a browser.
By uploading the build output instead of the source code, the deployment process becomes faster because the platform does not need to perform any additional build steps. The system simply extracts the uploaded build files and deploys them so the site can be accessed immediately after deployment.
Steps to Deploy Using Upload Build File
Step 1: Open Deploy Site
From the dashboard, click Deploy App to open the deployment page.
Then click on Static Site button
Step 2: Configure Site Details
Provide the required deployment information such as the site name and other configuration details required by the platform.
Step 3: Select Organization
Choose the organization where the site will be deployed.
Organizations help manage deployments and resources across different teams and projects.
Step 4: Select Upload Build File
Choose Upload Build File from the available deployment methods and click on continue button.
Step 5: Upload the Build File
Upload the compiled build of your application as a .zip file .tar file or .tar.gz file, which allows the maximum size of the file to be 100MB.
The compressed file should contain the production-ready files generated from your project.
Step 6: Deploy the Site
Click Deploy Site to begin the deployment process.
The platform will upload the build files and deploy the site automatically.
Step 7: Verify Deployment
After deployment completes, open the application details page and click Site to access the deployed website.
This section now displays all the previously deployed sites and the new site that was just deployed.
