Fix problematic line in seeds

This commit is contained in:
riccardo
2019-09-23 18:41:38 +02:00
parent e70d3bbda6
commit 2967b4eba0
3 changed files with 12 additions and 6 deletions

View File

@@ -4,9 +4,10 @@ RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
RUN npm install -g yarn
# Install Chrome (needed by Capybara). TODO: optional installation, only if development
# Install Chrome (needed by Capybara). TODO: optional installation, only if needed
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
RUN dpkg -i /google-chrome-stable_current_amd64.deb; apt-get -fy install
RUN rm /google-chrome-stable_current_amd64.deb
RUN mkdir /app
WORKDIR /app
@@ -29,4 +30,4 @@ ENTRYPOINT ["/app/docker-entrypoint.sh"]
EXPOSE 3000
# No default CMD is provided in Dockerfile
# No default CMD is provided in Dockerfile

View File

@@ -1,6 +1,11 @@
# Create an admin user and confirm its email automatically
admin = User.create(email: 'admin@example.com', password: 'password', role: 'admin', full_name: 'Admin')
admin.confirm
admin = User.create(
full_name: 'Admin',
email: 'admin@example.com',
password: 'password',
role: 'admin',
confirmed_at: Time.zone.now
)
# Create some boards
feature_board = Board.create(name: 'Feature Requests', description: 'Post here your feature requests.')

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# This file serves 3 use cases:
# 1: if the env variable UPDATE is 1, the database is prepared
# 1: if the env variable UPDATE is 1, db is prepared and assets compiled by webpack
# 2: if a command was supplied, it is executed
# 3: otherwise, check env variable ENVIRONMENT and launch server