Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Make build/prod deploy a bit more smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
Allypost committed Oct 6, 2020
1 parent 171b62a commit c6f691d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ typings/

# nuxt.js temp build output
.nuxt
.nuxt.tmp

# nuxt.js prod build output
.nuxt-prod
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
NODE_MODULES := ./node_modules
DB_CONTAINER := meetup-db
WEB_CONTAINER := nuxt
BUILD_OUTPUT_DIR := .nuxt.tmp
FINAL_OUTPUT_DIR := .nuxt

.PHONY: stop start up up-db up-web prod dev down down-web restart restart-web reboot reboot-web rebuild install yarn-install build clean build-containers

Expand Down Expand Up @@ -40,7 +42,9 @@ yarn-install:
docker/yarn install

build: yarn-install
docker/yarn build
docker/yarn build -c nuxt.config.build
rm -rf "$(FINAL_OUTPUT_DIR)"
mv "$(BUILD_OUTPUT_DIR)" "$(FINAL_OUTPUT_DIR)"

clean:
rm -rf $(NODE_MODULES) .nuxt
Expand Down
7 changes: 7 additions & 0 deletions nuxt.config.build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import baseConfig from "./nuxt.config";

export default {
...baseConfig,

buildDir: ".nuxt.tmp",
};

0 comments on commit c6f691d

Please sign in to comment.