简体   繁体   English

我的cloud9应用程序中的.bashrc文件在哪里? (Daniel Kehoe的学习指南教程)

[英]Where is the .bashrc file in my cloud9 app ? (Daniel Kehoe's learn-rails tutorial book)

I am trying to set up the configuration in preparation for following Daniel Kehoe's learn-rails tutorial book, but I am having trouble setting up the environment variables. 我正在尝试设置配置,以准备跟随Daniel Kehoe的Learn-rails教程书,但是在设置环境变量时遇到了麻烦。 The book seems to explain how to do it on Mac and Atom but not with cloud9. 该书似乎解释了如何在Mac和Atom上执行该操作,但没有对cloud9进行过解释。 I am supposed to put the environment variables into a file called ".bashrc" but I don't know where to find this file as it is hidden. 我应该将环境变量放入一个名为“ .bashrc”的文件中,但由于该文件被隐藏,我不知道在哪里可以找到它。

You will find it on the left side Workspace->Setting Icon->Show Hidden Files , You can click on the left side upper right then click it then it will show a list then you can click Show Hidden Files 您将在左侧的Workspace->Setting Icon->Show Hidden Files找到它,您可以单击左侧的右上角,然后单击它,然后它会显示一个列表,然后您可以单击Show Hidden Files

See the attached images 查看所附图片

在此处输入图片说明

then below of the left side tree 然后在左侧树的下方

在此处输入图片说明

Or you can use Figaro gem for the environment variable. 或者,您可以将Figaro gem用于环境变量。

Add Figaro to your Gemfile and bundle install : 将Figaro添加到您的Gemfile并bundle install

gem "figaro"

Figaro installation is easy: Figaro的安装很简单:

bundle exec figaro install

This creates a commented config/application.yml file. 这将创建一个带注释的config/application.yml文件。 Add your own configuration to this file and you're done! 将您自己的配置添加到此文件,就可以完成!

Example

# config/application.yml

SENDGRID_USERNAME: "appxxxxxx@heroku.com"
SENDGRID_PASSWORD: "$xxxxxxxxxxxxx@"

Hope it helps 希望能帮助到你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows 上的 .bashrc 文件在哪里? (Daniel Kehoe 的 learn-rails 教程) - Where is the .bashrc file on Windows? (Daniel Kehoe's learn-rails tutorial book) 为什么电子邮件无法在Rails应用程序中发送? 内部服务器错误)第20章。DanielKehoe学习Rails教程 - Why are emails not sending in my rails app? Internal Server Error) Ch 20. Learn Rails tutorial by Daniel Kehoe 我正在关注http://learn-rails.com/上的Learn-rails教程书2 - I'm following the learn-rails tutorial book 2 from http://learn-rails.com/ 在Learn-Rails教程中出现错误“发送消息需要SMTP到地址” - Error “An SMTP To address is required to send a message” on Learn-Rails Tutorial 每个教程AngularJS在Cloud9 Rails应用程序中均不起作用 - AngularJS not working in Cloud9 Rails app per tutorial Rails教程:cloud9服务器未运行 - Rails-tutorial: cloud9 server not running 在google_drive gem / learn-rails教程创建的GoogleDrive上找不到电子表格 - cant find spreadsheet on GoogleDrive which was created by google_drive gem / learn-rails tutorial 意外的tLABEL(SyntaxError)-Learn-rails - unexpected tLABEL (SyntaxError) - learn-rails 我的Rails服务器无法在Cloud9上运行 - My rails server cannot run on Cloud9 learning-rails捆绑包安装错误,解析Gemfile - learn-rails bundle install error parsing Gemfile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM