- This guide shows how to set up your Linode and local machine so that you can easily deploy your app whenever changes are made.
- Most of the time, this will be , but you can adjust the path and the directory name for your needs: Set permissions for the new directory to allow your regular user account to write to it: – – Ensure your web server is configured to serve from the file…
- Modify the in your virtual host file: firstname.lastname@example.org mydomain.com www.mydomain.com ## Modify this line as well as others referencing the path to your app combined Modify the line starting with in the server block for your site: Restart the web server to apply the changes.
- This script will check out the master branch of your project on Git, build the app using , and then sync the build files to the remote Linode using Rsync.
Learn to deploy a locally developed React application to your Linode using Rsync.
@linode: Build a simple, convenient deployment pipeline for #React.js apps on your Linode.
Familiarize yourself with our Getting Started guide and complete the steps for setting your Linode’s hostname and timezone. This guide will use wherever possible. Complete the sections of our Securing Your Server to create a standard user account, harden SSH access and remove unnecessary network services. You will need a web server configured to host a website on your Linode. This guide assumes you already have a React app you’d like to deploy. If you don’t have one, you can bootstrap a project quickly using create-react-app. Make sure Git is installed on your system:
The steps in this section should be performed on your Linode.
Navigate to your web root, or the location from which you’ll serve your React app, and create a directory where your app will live. Most of the time, this will be , but you can…