Question

How to get started?

Pretty simple use case. I’m building an HTML page that uses npm during build.

When I try and upload this to my S3 instance, it fails as symlinks aren’t supported.

So I spun up a node.js instance (assuming that’s what I need for node_modules) here but I have no idea how to upload my files? Can someone please point me in the right direction? I’m really new to all of this stuff.

Thanks, Matt


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there @MatthewBibby,

There are a couple of ways you could use to upload your files to your server:

  • Push your project to GitHub and then use the git clone command to clone the project on your server. You can follow the steps here on how to push your project to GitHub:

https://www.digitalocean.com/community/tutorials/how-to-push-an-existing-project-to-github

  • You can use SFTP to upload your files directly to the server rather than going through GitHub:

https://www.digitalocean.com/docs/droplets/how-to/transfer-files/

I would recommend using GitHub, that way you will have your project stored in there as well and you will be able to track your changes.

Another option would be to try out the new DigitalOcean App platform:

https://www.digitalocean.com/docs/app-platform/languages-frameworks/node/

That way you will not have to manage the servers yourself.

Regards, Bobby

Using the App platform, I installed a fork of the sample project. It worked fine. But there was no way to change the repo (just the branch), so I tried to install my stuff using the same approach but keep failing due to a ‘Deploy Error: Non-Zero Exit Code’.

Any idea what that’s about? I tried upgrading my plan to have more resources (thinking it was a memory issue) but that made no difference.

Bless you Bobby, you’ve just saved me hours of frustration.

Really appreciate it mate.