mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
* Create .gitpod.dockerfile * Create .gitpod.yml * Create database.yml.gitpod * Update .gitpod.yml * ruby 2.4.6 in gitpod.dockerfile * Update .gitpod.yml * Update database.yml.gitpod * add test database * adding && to execute everything before start commands
34 lines
968 B
YAML
34 lines
968 B
YAML
image:
|
|
file: .gitpod.dockerfile
|
|
ports:
|
|
- port: 3000
|
|
onOpen: open-preview
|
|
tasks:
|
|
- init: >
|
|
export CHROME_BIN=/usr/bin/chromium-browser &&
|
|
gem install bundler &&
|
|
bundle config set without 'production' &&
|
|
./lib/exporter-deps.sh > /dev/null 2>&1 &&
|
|
bundle install &&
|
|
cp config/database.yml.gitpod config/database.yml &&
|
|
cp config/config.yml.example config/config.yml &&
|
|
mysql -e "CREATE DATABASE mapknitter_development;" &&
|
|
mysql -e "CREATE DATABASE mapknitter_test;" &&
|
|
cp db/schema.rb.example db/schema.rb &&
|
|
rake db:setup &&
|
|
yarn install
|
|
command: >
|
|
passenger start
|
|
- command: chromium-browser --no-sandbox
|
|
- command: rails c
|
|
|
|
github:
|
|
prebuilds:
|
|
branches: true
|
|
pullRequests: true
|
|
pullRequestsFromForks: true
|
|
addCheck: true
|
|
addComment: true
|
|
addBadge: false
|
|
addLabel: false
|