Skip to content

astrocket/nuxt_on_rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nuxt + Rails API Demo

Tutorial from : link

도커 이미지 빌드 및 컨테이너 시작

docker-compose build
docker-compose run -u root backend bundle
docker-compose run client yarn
docker-compose run backend bundle exec rails db:create
docker-compose up

Rails Console 접속하기

docker-compose run backend bash
bundle exec rails g whateveryouwant

Rails bundle install

docker-compose run -u root backend bundle

NPM 설치하기

docker-compose run client yarn add @some/library

Nano 에디터 설치하기 (update랑 package 설치를 한방에 해야함)

apt-get update && apt-get install curl nano

Issues

docker 1.16 버전부터 bin/bundle 을 생성하고, 다른 binstub 에서도 참조하게 바뀐 문제. exec: "rails": exectuable... same issue above explains docker에서 nano 에디터 설치 에러 5.2 Rails secret 관련해서

About

Nuxt + Rails API Demo App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published