This file contains hidden or 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
# .github/workflows/ci.yml | |
services: | |
db: | |
image: postgres:13 | |
env: | |
POSTGRES_PASSWORD: its_a_secret | |
POSTGRES_USER: postgres | |
ports: | |
- 5432:5432 | |
volumes: |
This file contains hidden or 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
-- init.sql | |
create role myapp with createdb login password 'thepasswordgoeshere' |
This file contains hidden or 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
runner@fv-az139-674:~/work/myapp/myapp$ docker logs d9f1a3d336094b2d8b26703081b78d99_postgres13_67885a | |
The files belonging to this database system will be owned by user "postgres". | |
This user must also own the server process. | |
The database cluster will be initialized with locale "en_US.utf8". | |
The default database encoding has accordingly been set to "UTF8". | |
The default text search configuration will be set to "english". | |
Data page checksums are disabled. |
This file contains hidden or 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
runner@fv-az139-674:~/work/myapp/myapp$ docker ps -a | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
4336ebfbbd89 redis:6 "docker-entrypoint.s…" 5 minutes ago Up 4 minutes 0.0.0.0:6379->6379/tcp d04eb80007624ff19d2b34cb344cf4fd_redis6_d9fced | |
3ce2dda6db40 postgres:13 "docker-entrypoint.s…" 5 minutes ago Exited (1) 5 minutes ago d9f1a3d336094b2d8b26703081b78d99_postgres13_67885a |
This file contains hidden or 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
runner@fv-az139-674:~/work/myapp/myapp$ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
4336ebfbbd89 redis:6 "docker-entrypoint.s…" 4 minutes ago Up 4 minutes 0.0.0.0:6379->6379/tcp d04eb80007624ff19d2b34cb344cf4fd_redis6_d9fced |
This file contains hidden or 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
# .github/workflows/ci.yml | |
name: CI | |
on: push | |
env: | |
RAILS_ENV: test | |
RACK_ENV: test | |
DATABASE_HOST: "127.0.0.1" | |
REDIS_URL: "redis://127.0.0.1" |
This file contains hidden or 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
PG::ConnectionBad: could not connect to server: Connection refused | |
Is the server running on host "127.0.0.1" and accepting | |
TCP/IP connections on port 5432? | |
/opt/hostedtoolcache/Ruby/2.7.2/x64/bin/bundle:23:in `load' | |
/opt/hostedtoolcache/Ruby/2.7.2/x64/bin/bundle:23:in `<main>' | |
Tasks: TOP => db:reset => db:drop => db:check_protected_environments | |
(See full trace by running task with --trace) | |
Error: Process completed with exit code 2. |
This file contains hidden or 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
# .github/workflows/ci.yml | |
name: CI | |
on: push | |
env: | |
RAILS_ENV: test | |
RACK_ENV: test | |
DATABASE_HOST: "127.0.0.1" | |
REDIS_URL: "redis://127.0.0.1" |
This file contains hidden or 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
test |
This file contains hidden or 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
/* Aurelia Protractor Plugin */ | |
/* eslint-disable no-var, no-console */ | |
function addValueBindLocator() { | |
by.addLocator('valueBind', function(bindingModel, optParentElement) { | |
var using = optParentElement || document; | |
var matches = using.querySelectorAll('*[value\\.bind="' + bindingModel + '"]'); | |
var result; | |
if (matches.length === 0) { | |
result = null; |