Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7072

Confused about symlink between directories

$
0
0

I've created a GH workflow to deploy my web app on my VPS running Ubuntu 24.04 and node 20 with the below:

  • /var/www/domain/releases/${{ github.sha }}/all my app files (keeps the 5 latest releases and flushes the oldest)
  • /var/www/domain/live

I want the /live directory to be (re)symlinked to the latest release automatically so I'm executing the following at the end of my workflow before starting the app:

ln -s -n -f /var/www/domain/releases/${{ github.sha }} /var/www/domain/live

I always end up with the GH SHA directory within /live/${{ github.sha }} instead of having all files within /releases/${{ github.sha }}/ directly at the root of the /live directory.

How shall I do to have this working properly that /releases/${{ github.sha }}points effectively to /live and not /live/${{ github.sha }}?

Thank you for the help!


Viewing all articles
Browse latest Browse all 7072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>