Managing Your Staging Site with Code Server

Traducciones al Español
Estamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
For a limited time:  Create a SiteBay account and WordPress Site
to try this guide for free.

Managing Your Staging Site with Code Server: The Developer’s Ultimate Workflow

Why Traditional WordPress Staging Workflows Fail (And How to Fix Them)

If you’ve ever managed WordPress sites professionally, you’ve likely encountered these common staging frustrations:

  • Cumbersome file transfers between environments
  • Database synchronization nightmares
  • Broken links and paths after migration
  • Lost changes during deployment
  • Complex local development setups
  • Testing limitations due to environment differences

SiteBay’s Code Server eliminates these headaches entirely by providing a seamless, browser-based development environment specifically optimized for staging site management. This revolutionary approach transforms how you test, refine, and deploy WordPress changes.

The 5 Game-Changing Benefits of Browser-Based Staging Management

1. Frictionless Development Environment

Access your staging site’s complete codebase directly in your browser:

  • No local setup required - skip XAMPP, Docker, or complex local environments
  • Instant access from any device - develop from your laptop, tablet, or even a borrowed computer
  • Consistent environment - eliminate “works on my machine” problems
  • Zero configuration - all dependencies and tools pre-installed

“We eliminated 4 hours of weekly developer onboarding time by switching to Code Server for staging management.” — SiteBay customer

2. Complete WordPress File System Access

Navigate and modify your entire WordPress installation with ease:

  • Full directory access - explore all WordPress core, theme, and plugin files
  • Familiar file tree navigation - just like desktop VS Code
  • Multiple file editing - work on related files simultaneously
  • Syntax highlighting - for PHP, JavaScript, CSS, HTML, and more
  • Code autocompletion - including WordPress functions and hooks

3. Powerful Terminal Integration

Execute commands directly against your staging environment:

# List all plugins on staging
wp plugin list --path=/bitnami/stagewordpress

# Update a specific plugin
wp plugin update woocommerce --path=/bitnami/stagewordpress

# Check database tables
wp db tables --path=/bitnami/stagewordpress

# Run a database query
wp db query "SELECT * FROM wp_options WHERE option_name LIKE '%siteurl%'" --path=/bitnami/stagewordpress

4. Streamlined Testing Workflow

Perfect your changes before they reach production:

  • Instant preview - see changes immediately without deployment steps
  • Isolated testing - experiment freely without affecting live site
  • Plugin compatibility testing - verify updates work before going live
  • Performance optimization - test speed improvements in a safe environment
  • Comprehensive validation - ensure all site functions work correctly

5. Simplified Deployment Process

Move changes to production with confidence:

  • One-click deployment - promote changes when testing is complete
  • Selective updates - choose which changes to push live
  • Automatic backups - protection against deployment issues
  • Rollback capability - easily revert if necessary

Step-by-Step Guide: Managing Your Staging Site Like a Pro

Accessing Your Staging Environment

  1. Log in to your SiteBay dashboard
  2. Navigate to your WordPress site management page
  3. Click on the Staging tab
  4. Select Code Server to launch the browser-based editor
  5. The familiar VS Code interface will load with your staging site files pre-loaded

Understanding Your Staging File Structure

When working with Code Server, these are the key directories you’ll interact with:

DirectoryDescriptionCommon Use Cases
/bitnami/stagewordpressRoot staging site directoryRunning WP-CLI commands
/bitnami/stagewordpress/wp-content/themesTheme filesCustomizing appearance, templates, functions
/bitnami/stagewordpress/wp-content/pluginsPlugin filesModifying plugin functionality, debugging
/bitnami/stagewordpress/wp-content/uploadsMedia filesEditing images, organizing content
/bitnami/stagewordpress/wp-config.phpConfiguration fileAdjusting WordPress settings

Essential Tasks for Staging Management

Theme Customization

  1. Navigate to /bitnami/stagewordpress/wp-content/themes/your-theme
  2. Open files like style.css, functions.php, or template files
  3. Make your changes in the editor
  4. Save the file (Ctrl+S or Command+S)
  5. View your staging site to see changes immediately

Plugin Management via Terminal

# List all installed plugins with their status
wp plugin list --path=/bitnami/stagewordpress

# Install a new plugin
wp plugin install woocommerce --activate --path=/bitnami/stagewordpress

# Update all plugins
wp plugin update --all --path=/bitnami/stagewordpress

# Deactivate a plugin
wp plugin deactivate contact-form-7 --path=/bitnami/stagewordpress

Database Management

# Export database for backup
wp db export backup.sql --path=/bitnami/stagewordpress

# Search and replace URLs (useful when migrating)
wp search-replace 'http://old-url.com' 'http://new-url.com' --dry-run --path=/bitnami/stagewordpress

# Execute SQL query
wp db query "SELECT * FROM wp_users" --path=/bitnami/stagewordpress

Advanced Staging Management Techniques

Creating Custom WP-CLI Aliases

Create a .wp-cli/config.yml file in your home directory to simplify commands:

1
2
3
4
5
@staging:
  path: /bitnami/stagewordpress

@production:
  path: /bitnami/wordpress

This allows you to run commands like:

wp @staging plugin list
wp @production plugin list

Setting Up Version Control for Staging

Initialize Git for your theme to track changes:

cd /bitnami/stagewordpress/wp-content/themes/your-theme
git init
git add .
git commit -m "Initial commit of theme files"

Using VS Code Tasks for Common Operations

Create a .vscode/tasks.json file in your project:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Update All Plugins",
      "type": "shell",
      "command": "wp plugin update --all --path=/bitnami/stagewordpress",
      "problemMatcher": []
    },
    {
      "label": "Clear Cache",
      "type": "shell",
      "command": "wp cache flush --path=/bitnami/stagewordpress",
      "problemMatcher": []
    }
  ]
}

Access these tasks via the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).

Troubleshooting Common Staging Issues

IssueSolution
Changes not appearing on staging siteClear browser cache or use incognito mode; check file permissions
WP-CLI command errorsVerify you’re using the correct --path=/bitnami/stagewordpress parameter
Database connection issuesCheck wp-config.php for correct database credentials
File permission problemsUse chmod commands in terminal to adjust permissions
Broken links after migrationRun search-replace commands to update URLs in the database

Best Practices for Staging Site Management

  1. Always test in staging first - Never make significant changes directly to production
  2. Keep staging in sync - Regularly update staging with production data for realistic testing
  3. Document your changes - Keep detailed notes about what you’ve modified
  4. Use version control - Track changes to custom code for accountability
  5. Regularly back up - Create snapshots before major changes
  6. Test on multiple devices - Verify responsive behavior works correctly
  7. Validate all functionality - Check forms, payments, and key user flows

This page was originally published on



Join the conversation.
Read other comments or post your own below. Comments must be respectful, constructive, and relevant to the topic of the tutorial. Do not post external links or advertisements. Before posting, consider if your comment would be better addressed by contacting our Support team or asking on our Community Site.
The commenting system for SiteBay Docs requires the acceptance of Functional Cookies, which allow us to analyze site usage so we can measure and improve performance. To view and create comments for this article, please update your Cookie Preferences on this website and refresh this web page. Please note: You must have JavaScript enabled in your browser.