# Advanced Usage

This guide covers workflows and techniques for users who want to get the most out of their Genie environment.

***

## Working with Multiple Servers

If your plan supports multiple servers, you can separate your environments by purpose:

* **Development** — For building and testing
* **Staging** — For pre-production validation
* **Production** — For live applications

Each server operates independently with its own resources, files, and configuration. Switch between them from your dashboard.

***

## Automating with Cron Jobs

Schedule recurring tasks to run automatically:

* Daily backups of critical data
* Log rotation and cleanup
* Health checks and monitoring pings
* Scheduled reports or notifications

Define cron jobs in your advanced settings using standard cron syntax.

***

## SSH Access

On supported plans, connect directly to your Genie server from your local terminal:

```bash
ssh ubuntu@your-server.genie.deva.me
```

This allows you to use local tools, editors, and workflows while operating on your cloud environment.

***

## API and Webhook Integration

Use API tokens to automate Genie operations programmatically. Set up webhooks to receive real-time notifications about server events.

This enables integration with CI/CD pipelines, monitoring dashboards, and external automation tools.

***

## Custom Domains

Map your own domain to your Genie server for production applications. Genie handles DNS verification and SSL certificate provisioning automatically.

***

## Performance Optimization

Monitor your server's resource usage and adjust allocation as needed:

* Use `htop` to identify resource-heavy processes
* Check disk usage with `df -h`
* Review memory consumption with `free -m`
* Scale your plan if you consistently approach resource limits

***

## AI Rules for Advanced Workflows

Configure custom AI rules that match your development practices:

* Define coding standards the AI should follow
* Set technical preferences for languages and frameworks
* Create rules for deployment and review workflows
* Establish response formats that match your team's expectations


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.deva.me/guides/advanced-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
