Git Product home page Git Product logo

ruby-docs-hello-world's Introduction

ruby-docs-hello-world's People

Contributors

cephalin avatar microsoftopensource avatar msftgits avatar rachelappel avatar sadukie avatar syntaxc4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby-docs-hello-world's Issues

Creating Ruby app from scratch

I tried creating the Ruby Web App in Azure using the steps listed here It works great.

But, when I try creating a skeleton rails app using the following commands:

rails _5.1.2_ new sample_app

Add the following lines to application_controller.rb:

def hello
  render html: "Hello, world from Azure App Service on Linux!"
end

Add the following lines to config/routes.rb:

 root 'application#hello'

Now, when I push this code to Azure, I expect this to work just like the code in this repository. But, it does not work. (I get Service Unavailable error) What is the difference? In essence, what is the additional code that makes the code in this repository work? Any help would be appreciated.

Deploy fails with other Rail projects

Hi,
I am trying with a sample created by

rails new demo

while I push my changes the deployment starts but it would fail with this error:

Command: "/home/site/deployments/tools/deploy.sh"
ENOENT: no such file or directory, open '/opt/nodejs/12.13.0/npm.txt'
Handling node.js deployment.
Kudu sync from: '/home/site/repository' to: '/home/site/wwwroot'
Copying file: 't1.txt'
Ignoring: .git
Detecting node version spec...
Using default version: 12.13.0
Node.js versions available on the platform are: 4.4.7, 4.5.0, 4.8.0, 6.2.2, 6.6.0, 6.9.3, 6.10.3, 6.11.0, 6.17.1, 8.0.0, 8.1.4, 8.2.1, 8.8.1, 8.9.4, 8.11.2, 8.12.0, 8.15.1, 8.16.2, 9.4.0, 10.1.0, 10.10.0, 10.14.2, 10.17.0, 12.13.0.
Resolved to version 12.13.0
Detecting npm version spec...
An error has occurred during web site deployment.
select node version failed
ENOENT: no such file or directory, open '/opt/nodejs/12.13.0/npm.txt'\n/opt/Kudu/KuduConsole/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.