I have a live Laravel app running. I have added vuejs to this app. How would I deploy this live on Digital Ocean?

Posted January 29, 2018 5.1k views
LAMP StackUbuntu 16.04

I am running Ubuntu LAMP on 16.04 . Just looking for a simple tutorial on how to push to production.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

It sounds like you already have an application running, vuejs is simply static content that you can run alongside your Laravel app. How are you currently deploying your Laravel app?

If you haven’t deployed your Laravel app to a droplet yet, there are a few ways to go about it. One way is to use Ansible (there is a great tutorial here:

If you’re looking for a more manual solution, I’m a big fan of Shipit, which simply helps you clone a git repo on your server:

My Laravel app is already deployed to a droplet already . I ssh into Digital Ocean to deploy it and pull any new changes.

Here is a tutorial I used to get vuejs running in development. Laravel VueJS Tutorial Example From Scratch. In developement all works fine.

As of now I have used the following 2 tutorials and I get errors on installation.
Deploy a VueJS App with DigitalOcea and How To Install Nginx on Ubuntu 16.04

What I am looking for are instructions or a good tutorial on what I need to install and how on Digital ocean.

by Justin Ellingwood
Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet. It is more resource-friendly than Apache in most cases and can be used as a web server or a reverse proxy. In this guide,...
  • Hi dukesnuz

    If you have the application already deployed to a droplet, the VueJS shouldn’t need anything special to work, simply ssh into the Droplet and pull down the new version of your code that contains the VueJS and it should work.

    If you have issues with that, let me know what they are so we can see if we can help.

    • I did the above steps and it does not work. I read where I need to install Nginx and node, is this correct. Right now when i try to view the page I get the laravel error page.

Issue solved. I had a file named incorrectly. The first letter was in caps, should have been in lowercase.