You’d need to setup a Droplet that mimics your development environment first. To do this, you can use one of the one-click images available for use when setting up a Droplet, or, if you prefer to set your Droplet up on your own, you can check the tutorials here at DigitalOcean and do a search on what you’re wanting to setup.
For instance, if you want to setup a LAMP Stack on Ubuntu 16.04, you can type in LAMP 16.04 in the search box and it’ll automatically filter the results for you.
For example, this is one of the results provided when searching for LAMP 16.04:
Once you’ve got a working setup, you’d then connect using SFTP and upload your files to the location you’ve setup in your Apache configuration (if using the guide above), import your database(s), etc.
A "LAMP" stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is...