- docker-compose up
- docker-compose exec web yarn
- docker-compose exec web yarn build
Если возникает ошибка ERROR: Couldn't find env file: /Users/maksim/Workspace/obeder/secrets.env
,
берем файлик secrets.sample.env, копируем его и соответствующим образом называем.
Download and install the Heroku CLI. (brew install heroku or download pkg)
- heroku login
- heroku git:remote -a obeder
Deploy:
- heroku buildpacks:add heroku/nodejs
- heroku buildpacks:add heroku/ruby
- heroku config:set NPM_CONFIG_PRODUCTION=false
- heroku addons:create heroku-postgresql:hobby-dev
- heroku addons:create sendgrid:starter
- git push heroku master
user = User.create(name: 'ФАМИЛИЯ ИМЯ', email: 'EMAIL')
menus = Menu.ready.where('date >= ?', Date.current)
menus.each do |menu|
user_menu = UserMenu.create(user: user, menu: menu, neem: user.neem)
menu_dishes = menu.menu_dishes.default
dishes = menu_dishes.map(&:dish)
user_menu.dishes << dishes
end
- npm run dev - watching changes and recompiling bundle (also runs development server on 8080 port)
docker-compose run --rm web sidekiq docker-compose run --rm web clockwork clock.rb