diff --git a/.env.defaults b/.env.defaults new file mode 100644 index 0000000..ad100e7 --- /dev/null +++ b/.env.defaults @@ -0,0 +1,2 @@ +RONGCLOUD_APP_KEY="" +RONGCLOUD_APP_SECRET="" diff --git a/bin/console b/bin/console index 4f8ae5b..cecf451 100755 --- a/bin/console +++ b/bin/console @@ -3,6 +3,7 @@ require "bundler/setup" require "rongcloud" +require 'dotenv/load' # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. diff --git a/bin/setup b/bin/setup index dce67d8..81ff150 100755 --- a/bin/setup +++ b/bin/setup @@ -6,3 +6,4 @@ set -vx bundle install # Do any other automated setup that you need to do here +cp .env.defaults .env