This guide uses a Ruby on Rails app as an example, but Nitrous.io supports NodeJS, Python/Django, Go, PHP and Meteor apps out of the box.
- Signup on Nitrous.io with GitHub to make this easier later on.
 - Create a box for your Rails app, pick a nice name for it:
 -  I suposse you're doing some top-secret cool stuff. so click on your newly created box, then on "Reveal public key", and add the key to your GitHub account so you can clone your private repo:
 - To use the latest Ruby version, we need to install it with ruby_install. Open your box, and on the terminal, run:
 
parts install ruby_install ruby-install ruby 2.2.0 chruby ruby-2.2.0 gem install bundle
git clone git@github.com:user/repo.git, run bundle to install the gems. Code is up and running now!config/database.yml, using the values of the database your just created:development: adapter: postgresql encoding: utf8 database: # Database user: # User password: # Password host: "ec2-10-17.compute-1.amazonaws.com" # URL from "@" to ".com" pool: 5 port: 5432
rake:db:setup to kickstart your DB.bundle exec rails server -b 0.0.0.0 to start up your server, and access it through the Preview -> Port 3000 option on the menu bar.


No comments:
Post a Comment