Похожие чаты

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 ответов

16 просмотров

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.

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

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

Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
Мужики и девушки, привет) в Вelphi xe7 в настройках во вкладке "Editor Options" далее " Color" есть список: "Elements", открыв который мы можем настраивать отображение разных...
Kraszx
14
is that okay?
Samurai 🇯🇵
21
Добрый вечер. Есть вопрос, а может и предложение. Был у меня диалог в другой группе о делфи и я задался вопросом: "А нельзя ли в делфи цвет //коментария и {комментария} сде...
Kraszx
24
How about the project bro Likes the community not that active ?
🅿️abby_FX
19
Guys, Donald Trump or Kamala Harris? It does not matter for Bitcoin in the long run!! 2020 Election: After Joe Biden's victory in November 2020, Bitcoin steadily rose from...
Sabah Shabu
1
как быть с принтером? такой подход прокатит?
zamtmn
12
Всем привет! Подскажи, пожалуйста, как передать в TComboBox сразу значение и id записи. На Delphi я делал так: ComboBox1.Items.AddObject('Какое-то значение', Pointer(id запис...
Евгений
13
Мдя, прикол, боевая сборка запускается (именно под отладчиком) после F9 примерно полторы минуты (97 секунд если быть точным). Начал копать - проблема детектится сразу - зависа...
Александр (Rouse_) Багель
38
@brucezli Any info regarding ETA on updates?
Old Man Tom
10
Карта сайта