Browse Source

Add 'ruby/.gitpod.yml'

天问 5 months ago
parent
commit
1590a66cd6
1 changed files with 21 additions and 0 deletions
  1. 21 0
      ruby/.gitpod.yml

+ 21 - 0
ruby/.gitpod.yml

@@ -0,0 +1,21 @@
+image:
+  file: .gitpod.Dockerfile
+
+ports:
+  # Rails server
+  - port: 3000
+    onOpen: open-preview
+  # PostgreSQL server
+  - port: 5432
+    onOpen: ignore
+
+tasks:
+  - init: >
+      bundle install &&
+      yarn install &&
+      rake db:create
+    command: >
+      rails server -b 0.0.0.0
+vscode:
+  extensions:
+    - rebornix.ruby