First, SSH in to your server as the app's system user; for example, serverpilot.
Then, remove the existing public directory with these commands (replacing APPNAME with the name of your app):
rm apps/APPNAME/public/index.php rmdir apps/APPNAME/public
cd into the app directory
Create sym link between current dir and serverpilot public
ln -s current public
If laravel, set up a .htaccess in the root to point to public folder
Set up post-commands for php artisan migrate and composer install
SET UP SERVER FOR APP IN DEPLOYBOT:
1. Choose Atomic SFTP 2. Use digitalocean details: Host: [host IP] User: serverpilot Pass [pass] Destination path: /srv/users/serverpilot/apps/APPNAME
Discover, share and save useful code snippets.
Join our community over over 2,000 members! Currently a 48% acceptance rate. Apply for membership →