Skip to content

Commit da642ce

Browse files
author
Evan Radkoff
committed
Add EXECJS to migrate-and-test
1 parent e114a96 commit da642ce

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ migrate-and-test:
2929
variables:
3030
DATABASE_URL: postgres://phoenix:phoenix@postgres:5432/phoenix
3131
H_ORIGIN: http://localhost:5000
32+
EXECJS_RUNTIME: Node
3233
image:
3334
name: ruby:3.0.6
3435
script:

docker-entrypoint.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,13 @@
22

33
set -m
44

5-
echo "=== Checking Node availability ==="
6-
which node
7-
ruby -e "p File.executable? '/usr/bin/node'"
8-
node --version
9-
echo "=== Node check complete ==="
10-
115
if [ ! -f /etc/SECRET_KEY_BASE ]; then
126
echo $(openssl rand -hex 128) > /etc/SECRET_KEY_BASE
137
fi
148

159
export SECRET_KEY_BASE=$(cat /etc/SECRET_KEY_BASE)
1610

17-
export EXECJS_RUNTIME=Node
18-
export PATH="/usr/bin/:$PATH"
19-
bundle exec rake db:migrate
11+
rails db:migrate
2012

2113
rake tmp:clear
2214

0 commit comments

Comments
 (0)