I haven’t found a really straightforward way to update the Laravel application that powers markdown.love apart from using Laravel’s paid service.
Let’s see how to do it manually:
-
Put the site in maintenance mode. First, you would need to put your site into maintenance mode by running
php artisan down
. You can put it back up once finished withphp artisan up
. -
Edit the files. You can use any FTP client (or git) to upload your updated files to the server. Once they’re up, check to make sure that the permissions and the owner of the file didn’t change and that both apache and php can open it.
-
Clear and rebuild the cache. Run the following commands to completely clear the cache. If you only edited a view you can only clear the view cache and so on. php artisan cache:clear php artisan view:clear php artisan route:clear php artisan clear-compiled php artisan config:cache
-
Put the server back up. Run
php artisan up
to put your server back online.
The next step would be to automate the process. If you’re using git (you should) you can have a page on your server that gets notified each time there is a new commit to a specific branch and automatically starts the deploy process. Both Github and Gitlab have an extensive documentation on the matter.