This is a script to run on a new Cloud-9 Ubuntu instance that will setup a Ruby on Rails environment for development.
- Choose 'Ubuntu' environment when setting up a new Cloud 9 Instance
- From the command line, run:
\curl -sSL https://raw.githubusercontent.com/LEARNAcademy/cloud9-config/master/setup.sh | bash -s
- Set the username in config/database.yml to: ubuntu
Or, if you have created another environment alredy, you can start here:
Name your environment something descriptive. You'll likely end up with many environments, so name it something that will help you remember exactly what work is on this environment.
Ubuntu is a flavor of Linux that is great for developing and deploying all kinds of web applications. Javascript, Node, and Rails especially!
It may take a minute or two for Cloud9 to setup your new development server. This is a great time to refresh your coffee.
Copy and past the following command into the terminal window. This will download a script from Learn's Github account and configure your sever with the things you need to start developing:
\curl -sSL https://raw.githubusercontent.com/LEARNAcademy/cloud9-config/master/setup.sh | bash -s
You're ready to create your application
The setup script created a user in Postgresql named 'ubuntu'. We need to configure Rails to use this user when connecting to the database.
You can now create the database for your project.