From b4fe44510bdda8e3125934da4ca572ccc001ea98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Turbelin?= Date: Thu, 30 May 2019 10:55:14 +0200 Subject: [PATCH] Tune up the Rake task --- docker-compose.yml | 2 +- lib/tasks/dev.rake | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index abc400c5e6..756131215c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: stdin_open: true build: . ports: - - 3006:3000 + - 3000:3000 volumes: - .:/usr/src/app - gems:/bundles diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index 3b4823d3ea..cffda24803 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -3,10 +3,18 @@ namespace :ofn do desc 'Setup dev environment' task setup: :environment do p '== Entering setup' + # NOTE: Could be helpful to drop and create again the db here + #Rake::Task['db:drop'].invoke + #Rake::Task['db:create'].invoke unless Spree::User.table_exists? && Spree::User.count - p '== Purge & Load sample data' + p '== Load data schema' Rake::Task['db:schema:load'].invoke + + # TODO: Integrate the tasks loading data + # Issue to reach stdin while creating Admin account + #Rake::Task['db:seed'].invoke + #Rake::Task['ofn:sample_data'].invoke end p '== Migrate'