Похожие чаты

I have a go api which uses viper to load

env variables which are in a .env file. I m confused as to how to define the .env file on netlify or heroku. How will viper access these env vars?

3 ответов

17 просмотров

I don't think Netlify supports Go (or any other server-side programming language really. Heroku supports Go. You set the env vars in the Dyno. Deploying an env file is bad practice, especially given the latest security breaches that lead to user data being compromised. If you can afford Amazon EC2 or Linode, which is built on top of AWS, you can use Docker to help you deploy to the vm. If you can't, you can go serveless and resort to AWS Lambda and Amazon API Gateway (look up how to deploy a serveless Go Api on AWS), but it'll lock you into Amazon.

progmatic99- Автор вопроса
Pedro Aguiar
I don't think Netlify supports Go (or any other se...

I also need a postgres db with this api. Would that be possible in aws or heroku?

progmatic99
I also need a postgres db with this api. Would tha...

Anything's possible if you have money. If I remember correctly, you can have an up to 4 MB always free database on Heroku as long as you verify your account with a credit card. AWS offers a wide array of paid products, so yes, you can have it on AWS. However, if I were you, I would stick to a nanode on Linode which costs a flat price of $5 a month. It has 25 GB of SSD, 1 GB of RAM and a public IPv4. This should be enough for your personal projects with the help of Docker.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта