Topic: How to deploy to my own server

symon pritchett free asked 5 years ago


New to the world of Vue, but experienced web developer.

So I'm interested in starting to use Vue for my new projects and love the MD framework, so my question is: How do I run this on my local server setup (MAMP), from there I will know how to deploy to the production server.

I downloaded the Free Admin dashboard: https://mdbootstrap.com/freebies/vue/admin-dashboard/ to do some testing, made some changes and all is working via the http://localhost:8080/ setup, but how do I get this working using vhosts, ie: http://testmd.loc that I usually develop with.

Also which files do I need to upload for production, assuming that I do not need all the project files.

Thanks in advance Symon :O)


Mikołaj Smoleński staff answered 5 years ago


Hi there @symon pritchett!

All you need to make a production build is to run one of the following commands:

npm run build

or

yarn build

It will produce the dist directory which is ready to be published at any server.

Best regards


symon pritchett free commented 5 years ago

Thanks, I thought it would be something simple like that



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 5.8.0
  • Device: Mac
  • Browser: Chrome
  • OS: Cpanel
  • Provided sample code: No
  • Provided link: Yes