In this lesson, we’re going to work directly on the server. We’ll make changes to our Dev site, review them on our Test site, then deploy them to Live.
Watch the video:
Try it yourself:
Navigate to Code in the Dev tab of your Site Dashboard. Confirm your Connection Mode is set to SFTP.
Now log in to your Dev site by clicking the Site Admin button.
Install a new theme (i.e., do not activate/enable a theme that came pre-packaged with your site).
Activate/enable the new theme you just installed in Step 3. Now view your site to confirm the theme change.
Return to the Dev tab of your Site Dashboard. The files you just added are highlighted.
NoteYou may need to refresh your dashboard to see these files in your Dev environment.
Add a commit message, then click Commit to add these files to your Dev environment.
NoteIn the Dev environment, you can’t make a commit without first adding a commit message.
Ok, now let’s review the new theme in your Test environment.
Navigate to the Test tab and click Deploys . As you can see, 1 commit is ready to deploy from the Dev environment.
Let’s review the new theme with the new content we added in the Live environment. Check the box for Pull files and the database from the Live environment.
Again, consider creating a backup before proceeding:
Create Backup (optional)
The Backups tab is where you manage all the details for your site's backup. A backup is composed of 3 separate archives for database, files, and code. Let’s create a backup now:
- Click Backups on the Dev tab of your Site Dashboard.
- Click Create New Backup.
- Click Deploys to return to the lesson.
WarningAs intended, the following action will overwrite your Test database and files. If you skipped this backup task you will be unable to recover this data hereafter.
Add a Deploy Log Message (optional), then click Deploy Code from Development to Test Environment.
Deploy Commits to Test (optional)
Test is a separate environment from Dev, with its own codebase, database, and media files. When you deploy code from Dev, the platform leverages Git to pull any code changes into your Test environment.
When the deployment finishes, click Site Admin to navigate to your Test site. Here you’ll notice that your theme is installed, but not active/enabled. You’ll also find that your content has been pulled “down” from Live.
Review your Test site. Does everything look correct? If yes, navigate to Deploys on the Live tab of your Site Dashboard.
Add a Deploy Log Message (optional), then click Deploy Code from Test to Live Environment.
When this is finished, you’ll again need to activate/enable the new theme on your Live site.
Congratulations! You just performed on-server development. You made changes on your Dev site, reviewed them on your Test site, then deployed them to Live.