forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set up gitpod builds for every PR (publiclab#8145)
* test gitpod * just checking gitpod * changed version * tasks gitpod * gitpod.io * initial setup * db setup * init update * create db * sql error * gitpod test * path issue * Update .gitpod.yml * Update .gitpod.yml * removed .gitpod.dockerfile * added gitpod.dockerfile * passenger start added * switch to mysql * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml * Update .gitpod.yml Co-authored-by: Jeffrey Warren <[email protected]> Co-authored-by: Sebastian Silva <[email protected]>
- Loading branch information
Showing
6 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM gitpod/workspace-mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
image: | ||
file: .gitpod.dockerfile | ||
ports: | ||
- port: 3000 | ||
onOpen: open-preview | ||
tasks: | ||
- init: > | ||
bundle install --without production && | ||
cp config/database.yml.gitpod config/database.yml && | ||
mysql -e "SET @@global.sql_mode=(SELECT REPLACE(@@global.sql_mode, 'ONLY_FULL_GROUP_BY', ''));" && | ||
mysql -e "CREATE DATABASE plots;" && | ||
cp db/schema.rb.example db/schema.rb && | ||
rake db:setup && | ||
yarn install | ||
command: > | ||
passenger start | ||
github: | ||
prebuilds: | ||
branches: true | ||
pullRequests: true | ||
pullRequestsFromForks: true | ||
addCheck: true | ||
addComment: true | ||
addBadge: false | ||
addLabel: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ sudo: required | |
language: ruby | ||
|
||
rvm: | ||
- 2.4.4 | ||
- 2.6.6 | ||
|
||
services: | ||
- docker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -688,7 +688,7 @@ DEPENDENCIES | |
will_paginate-bootstrap4 | ||
|
||
RUBY VERSION | ||
ruby 2.4.4p296 | ||
ruby 2.6.6p146 | ||
|
||
BUNDLED WITH | ||
2.1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
development: | ||
adapter: mysql2 | ||
username: root | ||
password: | ||
encoding: utf8 | ||
database: plots | ||
strict: false | ||
|
||
production: | ||
adapter: sqlite3 | ||
database: production.sqlite | ||
|
||
# Warning: The contents of the database defined as "test" will be erased and | ||
# re-generated from your development database when you run "rake". | ||
# Do not set this db to the same as development or production. | ||
test: | ||
adapter: sqlite3 | ||
database: test.sqlite |