mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
Fix problematic line in seeds
This commit is contained in:
@@ -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
|
||||
@@ -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.')
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user