We’ve added the ability to run a post-provision script every time you set up a new server. All post-provision scripts run as the root user once your server has been successfully provisioned.
Post-provision scripts can be added when spinning up a new server. Clicking in the text box provided will allow you to enter the desired scripts.
Installing custom software on your server is the most typical use-case for post-provision scripts, such as installing Node.js and npm so you can compile frontend assets on the server. To do that, you would run these scripts:
apt-get install -q -y nodejs;
apt-get install -q -y npm;