From 27b9f50afb4178bad5a097b5aed86708593e45cc Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 2 Nov 2021 23:02:22 -0700 Subject: [PATCH] Oops, Next.js builds are in .next/, not in build/ I was copying over an old create-react-app build folder, and the app was crashing remotely because there was no build! Anyway woo it looks like the app is at least running now, `curl localhost:3000` shows results! >:3 --- deploy/playbooks/deploy.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/playbooks/deploy.yml b/deploy/playbooks/deploy.yml index 21e4b63..4fd2663 100644 --- a/deploy/playbooks/deploy.yml +++ b/deploy/playbooks/deploy.yml @@ -36,21 +36,21 @@ - name: Copy local app's source files to new remote folder ansible.posix.synchronize: - src: "{{ local_app_root }}" + src: "{{ local_app_root }}/" dest: "{{ remote_app_root }}" rsync_opts: - "--exclude=.git" - "--filter=':- .gitignore'" - - name: Copy local app's build files to new remote folder + - name: Copy local app's .next build files to new remote folder ansible.posix.synchronize: - src: "{{ local_app_root }}/build" - dest: "{{ remote_app_root }}/build" + src: "{{ local_app_root }}/.next/" + dest: "{{ remote_app_root }}/.next" - name: Copy local app's .env secrets file to new remote folder - copy: + ansible.posix.synchronize: src: "{{ local_app_root }}/.env" - dest: "{{ remote_app_root }}" + dest: "{{ remote_app_root }}/.env" - name: Run `yarn install` to install dependencies remotely command: