Giter Site home page Giter Site logo

the-teacher / rails7-startkit Goto Github PK

View Code? Open in Web Editor NEW
561.0 22.0 82.0 12.46 MB

Launch Rails with 1 shell command!

Home Page: https://github.com/the-teacher/rails7-startkit

License: MIT License

Ruby 63.21% JavaScript 2.87% CSS 2.78% HTML 21.32% Dockerfile 5.22% Shell 4.54% SCSS 0.06%
docker elasticsearch pgsql rails redis ruby sphinx sidekiq sanitize sanitizer

rails7-startkit's Introduction

Hi! I'm Ilya Zykin

I am Ex-

  • teacher of computer studies and progarmming. That is why I'm the-teacher
  • EMERCOM officer
  • team lead
  • owner and a partner in some online projects
  • speaker
  • poem writer
  • music and songs composer

I am

  • Full stack developer (Ruby, Rails, JS ecosystems)
  • Senior tech interviewer
  • Open-source enthusiast
  • IT Coach and Mentor
  • Books writer
  • Happy husband and father

rails7-startkit's People

Contributors

ggalancs avatar kronen10 avatar luilver avatar nicke avatar the-teacher avatar wiiikiii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rails7-startkit's Issues

Docker Compose v2 not found but docker-compose v2 is installed

Cloning into 'rails7-startkit'...
remote: Enumerating objects: 2519, done.
remote: Counting objects: 100% (608/608), done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 2519 (delta 534), reused 514 (delta 513), pack-reused 1911
Receiving objects: 100% (2519/2519), 12.48 MiB | 13.22 MiB/s, done.
Resolving deltas: 100% (1544/1544), done.
Docker version 24.0.7, build afdd53b4e3
=> Docker found
=> Docker is running
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rails 7. StartKit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=> Docker Compose v2 not found
To continue please install or upgrade Docker Compose v2
More info: https://docs.docker.com/compose/compose-v2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~/De/R/rails7-startkit    master  docker-compose -v                                 1 ✘    5  
Docker Compose version 2.23.3

I am using Arch Linux.

docker compose version
Docker Compose version 2.23.3

Even this command works but the match does not contains v2.

Works after change v2 to 2 in Rails7StartKit/bin/docker.rb

Devise. Confirmation issue

Screenshot 2023-02-03 at 21 58 57

Screenshot 2023-02-03 at 21 59 32

NameError in Devise::RegistrationsController#create
undefined local variable or method `unconfirmed_email'

bin/setup issue

hi, i tried to follow the steps to setup the env, but bin/setup kept giving out this error:

ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]

Docker version 20.10.12, build 20.10.12-0ubuntu4

error:
/rails7-startkit$ bin/setup
Docker version 20.10.12, build 20.10.12-0ubuntu4

  1. Launching PgSQL container
    unknown shorthand flag: 'f' in -f
    See 'docker --help'.

Usage: docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Options:
--config string Location of client config files (default "/home/cmb/.docker")
-c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
-D, --debug Enable debug mode
-H, --host list Daemon socket(s) to connect to
-l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default "/home/cmb/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/home/cmb/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/home/cmb/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit

Mailcatcher. Loosing a network

I noticed that time to time mailcatcher container can not be stopped/started correctly due to some issues with an access to a network for the project.

Issues can be solved with restart of the whole project after some time.

I think for now it is low priority issue. Would be great to figure out once.

unable to deploy successfully

Greetings!

I've been trying to setup a new instance of this today, I have a few other instances that have deployed without a hitch. today I am receiveing this though,

# ./spec/views/landings/show.html.erb_spec.rb:1:in <top (required)>
# ------------------
# --- Caused by: ---
# PG::ConnectionBad:
#   FATAL:  no pg_hba.conf entry for host "172.24.0.6", user "postgres", database "rails7_app_test", no encryption
#   /usr/local/bundle/gems/pg-1.4.5/lib/pg/connection.rb:632:in async_connect_or_reset'
No examples found.

Finished in 0.00006 seconds (files took 1.65 seconds to load)
0 examples, 0 failures, 10 errors occurred outside of examples

Coverage report generated for RSpec to /home/lucky/app/coverage. 8 / 164 LOC (4.88%) covered.
Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
15. Visit Rails App: http://local....

more specifically:

PG::ConnectionBad: FATAL:  no pg_hba.conf entry for host "172.24.0.6", user "postgres", database "rails7_app_development", no encryption```

service "rails" is not running container #1

hi, when runing bin/setup, kept getting the following error after step #3

$bin/setup
Docker version 20.10.23, build 7155243

  1. Launching PgSQL container
    [+] Running 1/0
    ⠿ Container rails7app-psql-1 Running 0.0s
    Waiting 3 seconds to initialize PgSQL database
    touch db/PGSQL/.keep
  2. Launching ElasticSearch Container
    [+] Running 1/1
    ⠿ Container rails7app-elastic-1 Started 0.5s
    Waiting 10 seconds to launch ElasticSearch Container
  3. Launching Rails container
    [+] Running 2/2
    ⠿ Container rails7app-psql-1 Running 0.0s
    ⠿ Container rails7app-rails-1 Started 0.6s
    Waiting 3 seconds to launch Rails Container
  4. Installing Gems. Please Wait
    Install Gems
    docker compose -f docker/docker-compose.yml exec rails /bin/bash -c 'bundle install'
    service "rails" is not running container #1

Add Kamal

Could you add the necessary files and gems to use Kamal?

Thank you for the startkit!

Cannot connect to the Docker daemon

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rails 7. StartKit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=> Docker not running
To continue please run Docker

========

➜ ruby -v
ruby 3.1.2p20
Not 3.2.2 because this MBA won't let puma launch.. But you didn't specify a Ruby version.

Gemfile does show 3.2.1. Also gem "rails", "7.0.7.2" which probably should be updated.

database that was last run in `development`

rspec -f documentation

ActiveRecord::EnvironmentMismatchError: You are attempting to modify a database that was last run in `development` environment.
You are running in `test` environment. If you are sure you want to continue, first set the environment using:

        bin/rails db:environment:set RAILS_ENV=test


Tasks: TOP => db:test:load => db:test:purge => db:check_protected_environments
(See full trace by running task with --trace)

Screenshot 2023-02-10 at 21 58 13

ES shim in Production mode

[41b29ecc-c06f-457e-b980-2d83ba9e4727] ActionView::Template::Error (The asset "es-module-shims.min.js" is not present in the asset pipeline.
):

Screenshot 2023-09-03 at 13 02 24

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.