-
If I understand correctly, During deploy, I now work around this by copying the This feels somewhat redundant. Is there a way that Or are there better ways to tackle this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Can you elaborate how this would be relevant when deploying to Observable? |
Beta Was this translation helpful? Give feedback.
Thanks for your reply.
I’m fairly new to npm. Therefore, I have trouble finding this deploy shell script, let alone modifying it to my needs.
I do not want to deploy to Observable (yet), but to my own subdomain, served by my Apache httpd. So I need an instance of
dist
in the appropriate place. I thought I could simply use a symlink todist
, but this disrupts thevhost
for a little while duringnpm run build
.So I created a shell script that
rsync
s thedist
to the appropriate document root of Apachehttpd
andln -sfh
to the new version.