Before you begin
You need to have:- A Upsun account: new users can register here
- A working project
- Git
- The Upsun CLI
1. Get your code
If you don’t have your app code on your computer, download a copy.-
Get your project ID by running
upsun projects. -
Get the code by running the following command:
Or pull from your integrated Git repository.
.upsun/config.yaml/local directory that’s excluded from Git.
It contains builds and local metadata about your project.
You can now make changes to your project without pushing to Upsun each time to test them.
Instead, you can locally build your application using the Upsun CLI.
Note that if your app contains services, you need to open an SSH tunnel to connect to them.
For more information, see how to connect services.
2. Connect to services
If your app requires services to run, you have two options for developing locally:- Tethered local development involves running your app on a local web server but keeping all other services on Upsun and connecting to them over an SSH tunnel.
- Untethered local development involves running your entire site locally, including all services.