Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace nitrous with codenvy in cloudservice guide #314

Merged
merged 2 commits into from Nov 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions _posts/2012-04-18-app.markdown
Expand Up @@ -37,7 +37,7 @@ permalink: app

### Important

It is important that you select the instructions specific to your operating system - the commands you need to run on a Windows computer are slightly different to Mac or Linux. If you're having trouble check the Operating System switcher at the bottom of the commands. In case you're using a cloud service (e.g. nitrous), you need to run the Linux commands even if you are on a Windows computer.
It is important that you select the instructions specific to your operating system - the commands you need to run on a Windows computer are slightly different to Mac or Linux. If you're having trouble check the Operating System switcher at the bottom of the commands. In case you're using a cloud service (e.g. Codenvy), you need to run the Linux commands even if you are on a Windows computer.

## *1.*Creating the application

Expand All @@ -48,7 +48,7 @@ First, let's open a terminal:
* Mac OS X: Open Spotlight, type *Terminal* and click the *Terminal* application.
* Windows: Click Start and look for *Command Prompt*, then click *Command Prompt with Ruby and Rails*.
* Linux (Ubuntu/Fedora): Search for *Terminal* on the dash and click *Terminal*.
* Cloud service (e.g. nitrous): Log in to your account, start your project and switch to its IDE (see [installation guide](/install#using-a-cloud-service) for details). The terminal is usually at the bottom of your browser window.
* Cloud service (e.g. Codenvy): Log in to your account, start your project and switch to its IDE (see [installation guide](/install#using-a-cloud-service) for details). The terminal is usually at the bottom of your browser window.

Next, type these commands in the terminal:

Expand Down Expand Up @@ -130,7 +130,7 @@ rails server
</div>
</div>

Open <http://localhost:3000> in your browser. If you are using a cloud service (e.g. nitrous), use its preview functionality instead (see [installation guide](/install#using-a-cloud-service) for details).
Open <http://localhost:3000> in your browser. If you are using a cloud service (e.g. Codenvy), use its preview functionality instead (see [installation guide](/install#using-a-cloud-service) for details).

You should see "Welcome aboard" page, which means that the generation of your new app worked correctly.

Expand Down Expand Up @@ -173,7 +173,7 @@ rake db:migrate
rails server
{% endhighlight %}

Open <http://localhost:3000/ideas> in your browser. Cloud service (e.g. nitrous) users need to append '/ideas' to their preview url instead (see [installation guide](/install#using-a-cloud-service)).
Open <http://localhost:3000/ideas> in your browser. Cloud service (e.g. Codenvy) users need to append '/ideas' to their preview url instead (see [installation guide](/install#using-a-cloud-service)).

Click around and test what you got by running these few command-line commands.

Expand Down
53 changes: 37 additions & 16 deletions _posts/2013-05-02-install.markdown
Expand Up @@ -310,7 +310,7 @@ Instead of installing all tools on your machine, you can also set up a developme

## Using a Cloud Service

Instead of installing Ruby on Rails and an editor on your computer, you can use a webservice for development. All you need is a browser and an internet connection. This guide explains how to get started with [nitrous.io](https://nitrous.io). If you're using a different service, they may use a different wording, but the process is usually pretty similar.
Instead of installing Ruby on Rails and an editor on your computer, you can use a webservice for development. All you need is a browser and an internet connection. This guide explains how to get started with [codenvy.io](https://codenvy.io). If you're using a different service, they may use a different wording, but the process is usually pretty similar.

### *1.* Update your browser

Expand All @@ -320,27 +320,48 @@ Open [whatbrowser.org](http://whatbrowser.org) and update your browser if you do

### *2.* Create an account

Go to [https://nitrous.io](https://nitrous.io/) and signup.
Go to [codenvy.io](https://codenvy.io) and signup for free.

### *3.* Setup a ruby on rails project
* Login to your nitrous account
* You're asked to create a workstation - choose the free one
* Create a project: pick Ruby on Rails from the templates - everything else can stay as is, but you can change the name of your project if you want to
* It takes a moment until your project is ready
![](/images/codenvy/create-account.jpg)

### *4.* Find and restart your project
* If you've just created your project, you can probably skip these steps - they're good to know if you login to nitrous again later
* If you haven't used your workstation or projects in a while, they might have been shutdown due to inactivity. If you login to nitrous and you are informed that your workstation has been shut down, restart it using the 'Start Workstation' button.
* You can always find your nitrous projects by going to the 'dashboard' from the top menu
* Pick your project from the list - if it has been shutdown, start it using the button with the on/off symbol
* When your project is up and running, choose 'IDE' in order to start coding
### *3.* Setup a workspace for Ruby on Rails

The Ruby on Rails Workspace has all the software we need for the workshop already preinstalled. To create a workspace, log into [codenvy.io](https://codenvy.io) and click on 'Dashboard'. If no workspace has been created yet, the 'New Workspace' view is displayed.

![](/images/codenvy/create-workspace-dashboard.jpg)

In the 'New Workspace' view, a few settings have to be made.

* 'New from blank, template, or sample project' should already be selected
* Select 'Create new workspace from stack'
* Select 'Stack library'
* Type 'BITNAMIRAILS' into the 'Filter' input field and press enter
* Give the workspace a name of your choice. In the example this is 'rails-girls-app'.
* Under 'Template' select 'web-rails-simple'
* Now click on 'Create' to create the workspace (it takes a moment for the process to finish)

![](/images/codenvy/create-workspace.jpg)

* Codeenvy creates a folder '/projects' during initialization, in which you can later put your code. It also creates a Rails project that we do not need. You can see it in the Project Explorer. Ignore it or delete it by right-clicking on the folder.

### *4.* Find and restart your workspace
* If you've just created your project, you can probably skip these steps - they're good to know if you login to Codenvy again later
* If you haven't used your workspace or projects in a while, they might have been shutdown due to inactivity. You will notice an empty circle displayed next to the workspace name.

![](/images/codenvy/start-workspace.jpg)

* In this case simply click on the name of the workspace. It will then be restarted (which can take a while) and afterwards opened.
* If you have restarted a workspace, you need to run the `bundle` command again in the directory of your Rails project (you will learn more about the command in the app tutorial)

### *5.* Coding with your project
* On the left hand side, you find a file browser where you can navigate your directories and file
* In the middle, you find the editor where you can modify your files
* At the bottom, you find the terminal where you can run commands
* Everything you need is right here in you browser window - you do not need to start an editor or terminal anywhere else
* If you are following a guide or tutorial, use the commands for Linux even if you are on a Windows computer - your operating system does not matter, since all commands are run on your project's machine in the cloud, which is running Linux
* If a guide or tutorial asks you to start the rails server with 'rails server' or 'rails s', append '-b 0.0.0.0' to this command so that you run 'rails server -b 0.0.0.0'
* If a guide or tutorial asks you to point your browser to something like http://localhost:3000, go to the 'Preview' menu and pick 'Port 3000 - HTTP' instead
* If, for example, you're asked to open http://localhost:3000/posts, open the preview from the menu and append '/posts' manually to the URL that has been opened
* If a guide or tutorial asks you to start the rails server with `rails server` or `rails s`, append `-b 0.0.0.0` to this command so that you run `rails server -b 0.0.0.0`
* If a guide or tutorial asks you to run a rails command that contains `rails` or `rake`, prepend `bundle exec` to this command, e. g. `bundle exec rake db:migrate`.
* If a guide or tutorial asks you to point your browser to something like http://localhost:3000, follow these instructions instead:
* Open the 'Operations perspective' (1) in Codenvy, go to the 'Servers' tab (2) and pick the URL entry in the line starting with 'rails' (see screenshot). Instead of http://localhost:3000, call this URL in your browser.
![](/images/codenvy/get-workspace-ip.jpg)
* If, for example, you're asked to open http://localhost:3000/posts, open the preview URL in your browser and append '/posts' to the URL.
Binary file added images/codenvy/create-account.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/codenvy/create-workspace-dashboard.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/codenvy/create-workspace.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/codenvy/get-workspace-ip.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/codenvy/start-workspace.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.