-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CloudNet v4 Support #3759
Comments
Can Cloudnet set environment variables? Plan supports environment variables for configuration.
|
CloudNet supports environmentVariables, but i don't know if they can be set dynamicly, i will look if i can do that |
Sadly, cloudnet does not allow to set the environmentVariables automaticly to the server name |
Does it support running scripts before server starts? Doing a |
I dont think so, the way you set the environment variables is in a json file. i have it like this right now |
It just seems really backwards to get configuration variables by having to ask the platform rather than the platform dictating the value - usually everything is configured top down to retain control over what is happening. I'd ask Cloudnet first if they would add support for setting specific environment variables as the server name, copying your example, something like
|
It should be way easier for them to implement change like that than me having to add their api and figure out what to call and where |
I have already asked, and they said that i would have to code that myself, i will try it, and thank you for the quick response |
I probably remembered the config path wrong. Basically uppercase it and put _ between any levels, might be PLAN_SERVER_NAME instead. If the environment variable exists the one in the file won't be read at all. |
Okay, thank you |
I would like to be able to..
It would be nice, if you can have an Config option, to enable CloudNet Support.
Is your feature request related to a problem? Please describe.
When it is enabled Plan would set the ServerName to the name of the CloudNet service.
This is really useful, beacuse if the services/servers aren't static you cannot change the ServerName and beacuse of this, all servers would use the same Name
The text was updated successfully, but these errors were encountered: