Skip to content

Rails 7. Start Kit Loves Nginx

Latest
Compare
Choose a tag to compare
@the-teacher the-teacher released this 18 Sep 07:15
· 8 commits to master since this release

Rails 7. Start Kit Loves Nginx

Screenshot 2023-09-18 at 09 53 50

At this weekend I've added NGINX to my start kit setup.

Time to time it is important to debug and check an application in mode that is close to the real production environment. Using NGINX helps to do it. I have added certificates to provide access via https.

In this PULL REQUEST You can check changes related to the enhancement.

/etc/hosts

To have an access to the project on local machine do not forget config your /etc/hosts file

Screenshot 2023-09-18 at 10 12 29 Screenshot 2023-09-18 at 10 12 04

How it looks

http https certificate
Screenshot 2023-09-17 at 14 36 32 Screenshot 2023-09-17 at 15 35 27 Screenshot 2023-09-17 at 15 39 00

Naming and Conventions note

Time to time people ask me, - "Why do you name configuration files so?". They mean that I underscore and uppercase some configuration files and folders like you can see it here:

Screenshot 2023-09-18 at 10 02 18

I do it to highlight some important configuration files, folders and other stuff for demonstration and education purposes.

If you do not like naming like that or my way to place configuration files - you always can change it following your personal preferences.

One-liner for launching Ruby on Rails

❤️ Linux / MacOS

git clone https://github.com/the-teacher/rails7-startkit.git && \
  cd rails7-startkit && \
  ruby bin/setup

💙 Windows

git clone https://github.com/the-teacher/rails7-startkit.git & cd rails7-startkit & ruby bin/setup

Prerequisites

On your host you have to have:

  • Any version of Ruby
  • Any version of Git
  • Any version of Docker

Like, Share, Tell to your Colleagues

👉 The project needs for your help to make it helpful for as much people is it possible.

Please Like 👍 , Share 💁 and Tell 📣 to your Colleagues!

❤️ Happy coding with Rails 7. Start Kit