0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ubuntuでvueをnginxにルーティング(備忘録)

Posted at

install node js

curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh

And run the script

sudo bash nodesource_setup.sh
sudo apt-get install nodejs

install build-essential package

sudo apt-get install build-essential

root is /var/www/html
so your build vue and cp to nginx root directory

git clone [your repo]

build app

npm run build

go to root dir

cd /var/www/html

cp dist dir to root dir

cp -rf [your Dir]/dist/* ./

end :)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?