Report this

What is the reason for this report?

Any resource which environment_slug are possible?

Posted on May 2, 2021

I created a .do/app.yaml file for my monorepo. I need to fill the environment_slug key, I could not find any documentation or resource which values are possible to fill that key. A medium thread used go, so I used go aswell for now, but my apps are build with NestJs and NextJs (javascript, nodejs)

Please provide some resource / documentation for this.



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!

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.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

The environment_slug key in your .do/app.yaml file determines the software that will be pre-installed on your app’s environment. Here are a few possibilities:

  • go for Go language environment
  • node for Node.js environment
  • python for Python environment
  • ruby for Ruby environment

Since you mention your apps are built with NestJs and NextJs, you should use node as your environment_slug to benefit from the Node.js runtime.

For more details on App Platform specifications, check out this App Specification Reference in the DigitalOcean docs. Here you will find other keys that you might need in your .do/app.yaml file.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.