簡體   English   中英

Laravel vue js 實時部署應用程序

[英]Laravel vue js deploy application on live

我使用 vue js 在 laravel 上創建了一個項目。 我的前端完全基於 vue js,我使用 laravel apis 作為后端。 我的項目結構是這樣的:

--app
--bootstrap
--config
--database
--fontend //This is my vue js code
  -- assets
  -- layout
  -- mode_modules
  -- pages
-- public
-- resources

... 等等。

我已經在我的前端文件夾上運行了這個命令

npm 運行構建

它在前端創建了一個文件夾 dist,現在下一步是什么?

我的服務器信息 Ubuntu (Apache)

您應該只將dist文件夾的內容復制到服務器主文件夾中,或者將其中的文件夾結構與public / www / web等文件夾一起復制,然后在其中。

如果要在wamp或xamp上“實時”運行,請復制到文件夾www。

當然,如果您已經有工作后端

You just copy contents inside the dist folder from your xampp/wampp folder.
and on Ubuntu server place inside directory /var/www/html folder. 

or if you want to place inside  any folder on the server like /var/www/html/front
then on front folder place contents inside front folder  then point domain to that
 front fodler.

then it will work.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM