툴랩
close
프로필 배경
프로필 로고

툴랩

  • 분류 전체보기 (34)
    • DevLog (1)
    • Programming (18)
      • HTML (1)
      • Golang (1)
      • PHP (1)
      • Laravel (4)
      • Python (5)
      • Delphi (2)
      • Flutter (2)
      • Next.js (0)
      • Node.js (0)
      • Ruby (2)
    • Nothing (0)
    • Arduino (3)
    • Server (12)
      • RockyLinux (11)
      • CentOS (1)
  • Home
  • Tags
  • Guest
  • NaverBlog
  • YouTube

Ruby on Rails - Github, Ubuntu 서버 자동배포

루비 온 레일즈를 배포하는 방법은 보통 Heroku, Fly.io, Railway 등 SaaS 서비스를 권장하고 있습니다.저는 한 서버에 MVP 개발을 많이 하고 있어 해당 서비스를 이용하면 요금이 많이 부과가 되어 Ubuntu 서버에 docker 형태로 배포하고 있습니다.Rails 8 부터 Kamal이라는 배포 도구가 포함이 되어있지만 한서버에 여러 서비스를 돌리기엔 무리가 있었습니다.Kamal-proxy 가 80, 443 포트를 점유하고 있기때문에 proxy 를 삭제해야하는 문제가 있었습니다. Docker Compose를 프로젝트 Dockerfile 있는곳에 생성합니다. docker-compose.ymlservices: web: # build: . image: ghcr.io/toollab..

  • format_list_bulleted Programming/Ruby
  • · 2025. 2. 10.
  • textsms

Ruby on Rails - SQLite I/O 에러 처리

Windows 환경에서 Console 로 접속하여 SQLite 에 데이터를 입력할때 I/O 에러가 뜨는 경우가 있습니다.'': SQLite3::IOException: disk I/O error: (ActiveRecord::StatementInvalid) 이럴경우 아래와 같이 기존 데이터를 백업해주고 재생성하면 해결됩니다.# 백업 생성cp storage/development.sqlite3 storage/development.sqlite3.backup# 데이터베이스 재생성rails db:droprails db:createrails db:migrate

  • format_list_bulleted Programming/Ruby
  • · 2025. 1. 26.
  • textsms
부트스트랩(BootStrap) 이 안되는 경우

부트스트랩(BootStrap) 이 안되는 경우

안녕하세요. CDN 으로 부트스트랩을 사용하여 만든 사이트가 다수 있습니다.오늘 오전부터 장애 문의로 연락을 많이 받았는데 디자인이 제대로 안뜬다는 겁니다.ㅠㅠ 찾아보니 cdn.jsdelivr.net 의 인증서 만료로 인하여 https 가 로드 안되는 상황이 되었네요. 임시방편으로 cdn.jsdelivr.net 를 fastly.jsdelivr.net 또는 gcore.jsdelivr.net 로 변경하시면 정상적으로 불러옵니다.

  • format_list_bulleted Programming/HTML
  • · 2024. 5. 2.
  • textsms

Laravel 10 Seeder 기본 데이터 넣기

안녕하세요. 라라벨을 이용할때 서버 배포 또는 DB 초기화 후 기본 데이터를 넣을 수 있습니다. Seeder(시더)를 이용한 방법이 있는데요 아래 간단하게 명령어와 사용법을 확인하시면 됩니다. 명령어(시더파일 생성) php artisan make:seeder AdminsTableSeeder 관리자 이메일, 비밀번호 입력 database/seeders/AdminsTableSeeder.php: use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; class AdminsTableSeeder extends Seeder { public function run() { DB::table..

  • format_list_bulleted Programming/Laravel
  • · 2023. 12. 5.
  • textsms
Laravel 10 서버 배포시 자동으로 패키지 설치

Laravel 10 서버 배포시 자동으로 패키지 설치

안녕하세요. Laravel 에서만 활용될 수 있는 내용은 아닙니다. CI/CD를 적용해서 활용하시는 분들도 많으시겠지만 저는 간단하게 git commit, git push, git pull 단계에서 직접적으로 확인 하고 간단하게 동작하는 형태를 좋아해서 git 에서 지원하는 hook 기능을 쓰고 있습니다. 서버에서 git pull 을 하면 작동하는 hook이며 composer, php artisan *:cache 를 실행합니다. Git 설정 # git이 적용된 프로젝트 폴더에서 아래 파일 생성 vi .git/hooks/post-merge post-merge 내용 #!/bin/sh #npm install #npm run build composer install --optimize-autoloader --n..

  • format_list_bulleted Programming/Laravel
  • · 2023. 12. 4.
  • textsms
Laravel 10 설치 및 프로젝트 생성

Laravel 10 설치 및 프로젝트 생성

안녕하세요. Laravel(라라벨)을 설치해 보려고 합니다. Laravel 은 여러가지 설치 방식을 지원해 주고 있습니다. 아래 메뉴얼 링크에서 보면 composer, sail, git 을 이용한 설치 방법이 있습니다. https://laravel.com/docs/10.x Laravel - The PHP Framework For Web Artisans Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things. laravel.com 개인적으로는 sail을 활용하여 개..

  • format_list_bulleted Programming/Laravel
  • · 2023. 10. 17.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (34)
    • DevLog (1)
    • Programming (18)
      • HTML (1)
      • Golang (1)
      • PHP (1)
      • Laravel (4)
      • Python (5)
      • Delphi (2)
      • Flutter (2)
      • Next.js (0)
      • Node.js (0)
      • Ruby (2)
    • Nothing (0)
    • Arduino (3)
    • Server (12)
      • RockyLinux (11)
      • CentOS (1)
최근 글
인기 글
최근 댓글
태그
  • #Laravel10
  • #laravel
  • #Flutter
  • #rockylinux
  • #flask
  • #PHP
  • #Python
  • #ChatGPT
  • #golang
  • #라라벨
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바