Skip to content

Deploy while keeping a consistent and complete ./dist/? #1879

Answered by Martien
Martien asked this question in Q&A
Discussion options

You must be logged in to vote

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 to dist, but this disrupts the vhost for a little while during npm run build.

So I created a shell script that rsyncs the dist to the appropriate document root of Apache httpd and ln -sfh to the new version.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@Martien
Comment options

Answer selected by mootari
@mootari
Comment options

mootari Dec 17, 2024
Collaborator

@Martien
Comment options

@mootari
Comment options

mootari Dec 17, 2024
Collaborator

@Martien
Comment options

Comment options

You must be logged in to vote
1 reply
@Martien
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants