並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 21 件 / 21件

新着順 人気順

dotenvの検索結果1 - 21 件 / 21件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

dotenvに関するエントリは21件あります。 Toolsrustnode.js などが関連タグです。 人気エントリには 『GitHub - dotenv-org/dotenv-vault: sync .env files—from the creator of `dotenv`.』などがあります。
  • GitHub - dotenv-org/dotenv-vault: sync .env files—from the creator of `dotenv`.

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

      GitHub - dotenv-org/dotenv-vault: sync .env files—from the creator of `dotenv`.
    • Flutterでdotenvを利用して環境変数を管理する方法 | DevelopersIO

      dotenvをインストール flutter_dotenvのパッケージをインストールします。 flutter pub add flutter_dotenv .envファイルを作成 環境変数を管理するためのファイルを作成します。 .env VAR_NAME ="dummyValue" ファイルをgitで管理しない場合は.gitignoreに追加しておきます。 .gitignore 〜〜〜 .env .envファイルをアセットに追加 Flutterアプリからファイルを読み込めるようにするために、pubspec.yamlのassetsへ.envファイルを追加します。 pubspec.yaml assets: - .env 環境変数を読み込み .envファイルをFlutterアプリで読み込みます。 lib/main.dart import 'package:flutter_dotenv/flutte

        Flutterでdotenvを利用して環境変数を管理する方法 | DevelopersIO
      • GitHub - dotenv-linter/dotenv-linter: ⚡️Lightning-fast linter for .env files. Written in Rust 🦀

        dotenv-linter can check / fix / compare .env files for problems that may cause the application to malfunction. Available checks: ✅ Duplicated key ✅ Ending blank line ✅ Extra blank line ✅ Incorrect delimiter ✅ Key without value ✅ Leading character ✅ Lowercase key ✅ Quote character ✅ Space character ✅ Substitution key ✅ Trailing whitespace ✅ Unordered key ✅ Value without quotes What is a .env file?

          GitHub - dotenv-linter/dotenv-linter: ⚡️Lightning-fast linter for .env files. Written in Rust 🦀
        • GitHub - codeshifu/sync-dotenv: Keep your .env in sync with .env.example

          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

            GitHub - codeshifu/sync-dotenv: Keep your .env in sync with .env.example
          • 環境変数の代わりに .env ファイルを使用する (dotenv) | まくまくNode.jsノート

            dotenv モジュールとは Node.js のプログラムから環境変数を参照するには process.env を参照します。 参考: Node.js で環境変数を参照する (process.env) ユーザー設定を環境変数で行うようにしているアプリはよくあるのですが、たかが 1 つのアプリのために環境変数を設定するのは嫌だというユーザーは少なからずいます(設定がどこで行われているのかわかりにくいという理由もあります)。 dotenv モジュールを使用すると、カレントディレクトリに置かれた .env ファイルを読み込み、そこに記述されたキー&バリューのペアを process.env 経由で参照できるようになります。 dotenv - npm つまり、ユーザはアプリの設定を、従来通り環境変数で行うこともできるし、.env ファイルでも行うことができるようになります。 環境変数を使ってアプリの挙

              環境変数の代わりに .env ファイルを使用する (dotenv) | まくまくNode.jsノート
            • 【Node】dotenvで環境変数を設定する - Qiita

              概要 Nodeでプログラムを実行する時に環境(dev/stag/prodなど)ごとに値が異なる部分はコードを修正せずに実行するため環境変数として埋め込むことがよくあると思います セットする環境変数が1つ2つであればコマンド実行時に設定すればよいですが規模が大きくなってきたらファイルでまとめて定義したくなるでしょう そんな時はdotenvを使うと便利です dotenvを使うと.envファイルに定義された値を環境変数として使うことができます また、システムの環境変数として値が設定されていればそちらを優先して使うということもできます なので、開発時はローカルで.envを配置し、本番ではホスティングサービスの機能で環境変数として設定するといった使い方をすることでリポジトリ内のファイルを変更せずに実行することができます Nodeスクリプトの実行時にdotenvを使う場合 シンプルな形でいうとinde

                【Node】dotenvで環境変数を設定する - Qiita
              • bashでdotenvファイルを環境変数に読み出す | おそらくはそれさえも平凡な日々

                .env みたいな環境変数設定ファイルを読み込んでから指定プログラムをexecするみたいなラッパーが欲しくなる事あると思います。 Goだとgithub.com/joho/godotenvとかあるけど、Goでやるほどでもないよねーという感じだったので、bashで書くなどした。 #!/bin/bash set -e if [[ "$#" = "0" ]]; then echo "usage: env-wrap.sh cmd [args...]" >&2 exit 1 fi # declare -x を引数無しで呼び出して、現状の環境変数をexportableな形式で書き出す orig_env="$(declare -x)" envfile=.env # allexportは`KEY=VALUE`をシェル変数じゃなくて、環境変数としてexportする危険なオプション set -o allexpo

                  bashでdotenvファイルを環境変数に読み出す | おそらくはそれさえも平凡な日々
                • Reactの環境変数をdotenv-cliで切り替えてみた | DevelopersIO

                  dotenv-cliを導入 dotenv-cliのパッケージをインストールして利用してみます。 dotenv-cliをインストール dotenv-cliのパッケージをインストールします。 npm install --save-dev dotenv-cli 環境変数のファイルを作成 プロジェクトのルートディレクトリに環境変数を定義するためのファイルを作成します。 ├ .env # ローカル環境 ├ .env.development # 開発環境 ├ .env.staging # 検証環境 ├ .env.production # 本番環境 各ファイルで環境変数を定義します。 .env REACT_APP_API_ENDPOINT=https://dev.example.com/v1/ .env.development REACT_APP_API_ENDPOINT=https://dev.exa

                    Reactの環境変数をdotenv-cliで切り替えてみた | DevelopersIO
                  • .env ファイルで環境変数を設定する (python-dotenv)

                    python-dotenv モジュールの概要python-dotenv モジュールを使用すると、Python プログラム実行時に次のような .env ファイルを読み込んで、環境変数を設定することができます。 .env MYAPP_USER=maku MYAPP_PASS=makupass MYAPP_CONFIG=${HOME}/${MYAPP_USER}/config 上記の例のように、${HOME} という形で環境変数の値を展開することもできます。 特定のプログラムを実行するために、いちいち OS の環境変数を設定するのを嫌がるユーザーはたくさんいます。 あなたのプログラムが何らかの環境変数を必要としているのであれば、.env ファイルによる設定手段も提供しておくと親切です。 .env の仕組みは Python に限ったものではなく、いろいろな言語で採用されています。 参考: Node

                      .env ファイルで環境変数を設定する (python-dotenv)
                    • python-dotenvを使って環境変数を設定する - Qiita

                      初めに APIのキーやDBのパスワードなどをべた書きするのはあまり良くないと教わり環境変数に入れる方法を考えた際にpython-dotenvを使うことにしました。 公式のgitはこちらです。 python-dotenvのインストールと.envファイル作成 インストール

                        python-dotenvを使って環境変数を設定する - Qiita
                      • Load environment variables from dotenv / .env file in Bash

                        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                          Load environment variables from dotenv / .env file in Bash
                        • dotenvとcross-envで環境変数を設定して開発環境の処理を切り替える | Tips Note by TAM

                          開発用と公開用で読み込むデータを変更したい、Gitで同じ開発環境を共有しながら一部のデータは作業者のPCで設定できるようにしたい。 要件が複雑な案件では、開発環境もより柔軟性のある設定にしておきたいことがあります。 たとえば、https環境が必須の機能を検証するためにbrowser-syncの設定が必要な場合です。各自のPCで証明書の発行が必要なので、Gitで共有することができません。 Google Maps APIやデータベースと連携するAPIを開発用と公開用で変更する場合もあります。切り替えるたびにソースコードを書き換えていると、本来不必要なコミット履歴が増え、開発用のAPIのまま本番環境に公開してしまったなんてことも起こってしまうかもしれません。 今回は柔軟性のある開発環境にするために便利な、環境変数とenv(エンブ)を紹介します。 環境変数とenv(エンブ)とは 環境変数とは、OS

                            dotenvとcross-envで環境変数を設定して開発環境の処理を切り替える | Tips Note by TAM
                          • next.jsでdotenvで環境変数を設定するのは間違い!たった3分で環境変数を設定する方法 - Qiita

                            概要 ・next.jsでは「.env.local」ファイルで環境変数を設定できる。 ・クライアント側でも環境変数を設定したいときは接頭語に「NEXT_PUBLIC_」をつける ・開発環境は「.env.development」、本番環境は「.env.production」でそれぞれの環境変数を設定できる 環境変数を設定する(サーバー編) next.jsでは簡単に環境変数を変更する仕組みがあります。 ルートディレクトリに「.env.local」ファイルを置き、その中で定義した環境変数はアプリの中で使うことができます。 たとえば、開発環境と本番環境で異なるデータベースを使いますよね。そんな時に「.env.local」ファイルに設定すれば環境変数をアプリ内で利用できます。

                              next.jsでdotenvで環境変数を設定するのは間違い!たった3分で環境変数を設定する方法 - Qiita
                            • Dotenv is dead | François Best

                              This post could have ended here, but I’ll take this opportunity to pass the overtly click-baity title and talk about how I manage environment variables in my Node.js projects. There are several issues with reading directly from process.env: It’s not type safe It’s not validated It’s not immutable Type safety & validation I like to use Zod to parse and validate outside data in my applications, and

                                Dotenv is dead | François Best
                              • [Python].envファイルで環境変数を設定する[python-dotenv] - Qiita

                                前書き 自分用のちょっとしたツールをPythonで作ることが増えてきたため、Tipsを記していきます。 Python3 環境構築手順は↓ 今回は環境変数を.envファイルに切り出し、実行ファイル(main.py)で変数として呼び出すところまでを試します。 環境変数としてコード管理から切り出すべきもの 環境(local/dev/test/production)によってvalueが異なる項目 その他外部への接続情報等、公開するべきではない項目 設定方法 今回はpython-dotenvを使用します。まずはインストールを行いましょう。 python-dotenv(GitHub)

                                  [Python].envファイルで環境変数を設定する[python-dotenv] - Qiita
                                • GitHub - fastify/env-schema: Validate your env variable using Ajv and dotenv

                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                    GitHub - fastify/env-schema: Validate your env variable using Ajv and dotenv
                                  • Dotenv

                                    Works with a single command You don't need to install anything to use dotenv-vault. No error prone binaries to install, infra to maintain, or custom code to write. It just works – with a single command.

                                      Dotenv
                                    • GitHub - dotenv-rs/dotenv: Library to help supply environment variables in testing and development

                                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

                                        GitHub - dotenv-rs/dotenv: Library to help supply environment variables in testing and development
                                      • Using dotenv with Jest

                                        I was looking for a convenient way to use the dotenv package in our Jest tests and it turns out there’s an easy way! The first and probably most obvious way is to just load dotenv in the jest setup file. However, most of our projects do not have a jest setup file and I wasn’t keen on adding a setup file just for loading dotenv. Here is how you would do it in the jest setup file: require('dotenv').

                                          Using dotenv with Jest
                                        • GitHub - kerimdzhanov/dotenv-flow: Loads environment variables from .env.[development|test|production][.local] files for Node.js® projects.

                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

                                            GitHub - kerimdzhanov/dotenv-flow: Loads environment variables from .env.[development|test|production][.local] files for Node.js® projects.
                                          • python-dotenv

                                            Meta License: BSD License (BSD-3-Clause) Author: Saurabh Kumar Tags environment variables, deployments, settings, env, dotenv, configurations, python Requires: Python >=3.8 Python-dotenv reads key-value pairs from a .env file and can set them as environment variables. It helps in the development of applications following the 12-factor principles. Getting Started Other Use Cases Load configuration

                                              python-dotenv
                                            1

                                            新着記事