Deployment Flow
Learn how to take your code from a repository to a live production environment in just a few clicks.
1. Initiation
From any page in the Abasthan Dashboard, click the + Create App button in the top right corner. This will open a dropdown menu where you can choose the type of service you want to deploy:
- App Services: Static Sites, Web Services, Background Workers, or PHP Apps.
- Data Store Services: PostgreSQL, MongoDB, MariaDB, or Redis.
- Management: Create a new Project or Environment Group.
2. Source Code Selection
Next, you'll need to select where your code lives. You can connect your GitHub, GitLab, or Bitbucket account to browse your private and public repositories. Alternatively, you can deploy from a Public Git Repository by providing its URL.
Once you select a repository, Abasthan will fetch the available branches for you to choose from.
3. Application Configuration
This is where you define how your application should be built and run. Abasthan's intelligent detection system will pre-fill most of these fields, but you can always override them:
- App Language & Version: Select the runtime (e.g., Node.js 22, Python 3.12).
- Build Command: The command to install dependencies and build your assets. Crucially, this must include the installation step (e.g.,
npm install && npm run build) to ensure all required modules are present. - Start Command: The command to launch your server (e.g.,
npm start). - Root Directory: If your app is in a subdirectory of your repo, specify it here.
4. Choose an Instance Type
Select a resource plan that fits your needs. Abasthan offers a range of instance types:
- Free: Perfect for small hobby projects or testing.
- Starter: Recommended for small production apps.
- Standard/Pro: Designed for high-traffic applications needing more CPU and RAM.
5. Environment Variables
Security is paramount. In the Environment Variables section, you can:
- Individual Variables: Add keys and values directly.
- Bulk Import: Click Import .env File to paste your local environment configuration.
- Environment Groups: Link your app to a predefined group of variables to share secrets across multiple services.
6. Deploy
Once everything is configured, click Deploy Web Service (or the relevant button for your service type). Abasthan will start the build process immediately. You can follow the real-time build logs in the dashboard to see your progress.
💡 Pro Tip
Enable Auto-Deploy in your app settings to have Abasthan automatically redeploy your application every time you push new code to your selected branch.