Skip to content

Commit

Permalink
seems better to use ruby over node in dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcai committed Mar 26, 2024
1 parent ab408e7 commit 6b22aa4
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 711 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
"name": "Node.js",
"name": "Ruby",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/javascript-node:20"
"image": "mcr.microsoft.com/devcontainers/ruby"

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
Expand Down
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

gem "puma"
gem "rackup"
gem "sinatra"
39 changes: 39 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
GEM
remote: https://rubygems.org/
specs:
base64 (0.2.0)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
nio4r (2.7.1)
puma (6.4.2)
nio4r (~> 2.0)
rack (3.0.10)
rack-protection (4.0.0)
base64 (>= 0.1.0)
rack (>= 3.0.0, < 4)
rack-session (2.0.0)
rack (>= 3.0.0)
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
ruby2_keywords (0.0.5)
sinatra (4.0.0)
mustermann (~> 3.0)
rack (>= 3.0.0, < 4)
rack-protection (= 4.0.0)
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
tilt (2.3.0)
webrick (1.8.1)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
puma
rackup
sinatra

BUNDLED WITH
2.5.3
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ This is the source code for the Boston Ruby Group website: https://www.bostonrub

## Local development

* npm install
* npm start
* bundle
* ruby app.rb

Note that ruby is only used in local development.

## Deployment

Expand Down
8 changes: 8 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'rubygems'
require 'sinatra'

set :public_folder, 'docs'

get '/' do
File.read(File.join('docs', 'index.html'))
end
9 changes: 0 additions & 9 deletions devserver.js

This file was deleted.

Loading

0 comments on commit 6b22aa4

Please sign in to comment.