Skip to content
Back to skills

2846 Deployment Targets 1ed1691c

ASecurity

Configuration differences for local development vs. production deployment.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
devopspythonbashsqldockertestinggitapidatabasebackend

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2846-deployment-targets_1ed1691c --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2846 Deployment Targets 1ed1691c?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2846 Deployment Targets 1ed1691c
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2846-deployment-targets-1ed1691c/badge)](https://www.skillsdirectory.com/skills/tools-only-2846-deployment-targets-1ed1691c)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Deployment Targets

Configuration differences for local development vs. production deployment.

## Local Development

### Using `langgraph dev`

Lightweight development server for rapid iteration:

```bash
# Install CLI with in-memory backend
uv pip install "langgraph-cli[inmem]"

# Fallback if uv not available
pip install "langgraph-cli[inmem]"

# Start server
langgraph dev
```

**Features:**
- No Docker required
- Local persistence (state persisted to local directory)
- Hot reloading (auto-restart on code changes)
- Default port: 2024
- Lightweight resource usage
- Studio access requires a LangSmith API key

**Access Studio:**
```
https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024
```

### Using `langgraph up`

Production-like testing environment:

```bash
# Install CLI
uv pip install langgraph-cli

# Fallback if uv not available
pip install langgraph-cli

# Start server
langgraph up
```

**Features:**
- Docker required
- PostgreSQL state persistence
- Optional hot reloading with `--watch`
- Default port: 8123
- Production-like environment
- Requires LangSmith API key for local dev; license key for production use

## LangSmith Deployment (Cloud/Hybrid)

### Configuration

No special configuration needed beyond standard `langgraph.json`:

```json
{
  "dependencies": ["."],
  "graphs": {
    "agent": "./my_agent/agent.py:graph"
  },
  "env": ".env",
  "python_version": "3.11"
}
```

### Deployment

Deploy via Git integration or the LangSmith control plane (UI/API).

**Features:**
- Managed infrastructure
- Auto-scaling
- Built-in monitoring
- Persistent PostgreSQL storage

### Environment Variables

Set in LangSmith UI under deployment settings (not in `.env` file).

## Self-Hosted Deployment (Standalone or Control Plane)

### Requirements

- Docker and Docker Compose
- PostgreSQL database
- Redis (optional, for caching)

### Configuration

```json
{
  "dependencies": ["."],
  "graphs": {
    "agent": "./my_agent/agent.py:graph"
  },
  "python_version": "3.11",
  "base_image": "langchain/langgraph-server:0.2",
  "dockerfile_lines": [
    "RUN apt-get update && apt-get install -y postgresql-client"
  ]
}
```

### Build and Run

```bash
# Build Docker image
langgraph build

# Run with docker-compose.yml
docker-compose up
```

## Configuration Comparison

| Feature | langgraph dev | langgraph up | Cloud | Self-Hosted |
|---------|---------------|--------------|-------|-------------|
| Docker | ❌ | ✅ | N/A | ✅ |
| State Persistence | In-memory | PostgreSQL | PostgreSQL | PostgreSQL |
| Hot Reload | ✅ (default) | ⚠️  (--watch) | ❌ | ❌ |
| Default Port | 2024 | 8123 | 443 | Custom |
| Use Case | Development | Testing | Production | Production |

## Best Practices

### Development
- Use `langgraph dev` for fastest iteration
- Keep `.env` file for local credentials
- Use LangSmith tracing to debug

### Testing
- Use `langgraph up` before deploying
- Test with production-like data volumes
- Verify state persistence

### Production
- Set environment variables via deployment UI/config
- Enable monitoring and alerting
- Use appropriate scaling configuration
- Implement authentication
- Configure CORS policies

## References

- [Local Development Guide](https://docs.langchain.com/langsmith/local-dev-testing)
- [LangSmith Deployment Docs](https://docs.langchain.com/langsmith/deployments)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.