Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
mention connection
Source Link
rogerdpack
  • 67.7k
  • 40
  • 291
  • 410

The Ruby on Rails log folder creation way:

mkdir log && touch log/.gitkeep && git add log/.gitkeep

Now the log directory will be included in the tree. It is super-useful when deploying, so you won't have to write a routine to make log directories.

The logfiles can be kept out by issuing,

echo log/dev.log >> .gitignore

but you probably knew that.

The Ruby on Rails way:

mkdir log && touch log/.gitkeep && git add log/.gitkeep

Now the log directory will be included in the tree. It is super-useful when deploying, so you won't have to write a routine to make log directories.

The logfiles can be kept out by issuing,

echo log/dev.log >> .gitignore

but you probably knew that.

The Ruby on Rails log folder creation way:

mkdir log && touch log/.gitkeep && git add log/.gitkeep

Now the log directory will be included in the tree. It is super-useful when deploying, so you won't have to write a routine to make log directories.

The logfiles can be kept out by issuing,

echo log/dev.log >> .gitignore

but you probably knew that.

added 1 character in body
Source Link
GAMITG
  • 3.8k
  • 7
  • 35
  • 51

The Ruby on Rails way:

mkdir log && touch log/.gitkeep && git add log/.gitkeep

Now the log directory will be included in the tree. It is super-useful when deploying, so you won't have to write a routine to make log directories.

The logfiles can be kept out by issuing,

echo log/dev.log >> .gitignore

but you probably knew that.

The Ruby on Rails way:

mkdir log && touch log/.gitkeep && git add log/.gitkeep

Now the log directory will be included in the tree. It is super-useful when deploying, so you won't have to write a routine to make log directories.

The logfiles can be kept out by issuing,

echo log/dev.log >> .gitignore

but you probably knew that.

The Ruby on Rails way:

mkdir log && touch log/.gitkeep && git add log/.gitkeep

Now the log directory will be included in the tree. It is super-useful when deploying, so you won't have to write a routine to make log directories.

The logfiles can be kept out by issuing,

echo log/dev.log >> .gitignore

but you probably knew that.

Copy edited.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

The Rails Way Ruby on Rails way:

mkdir log && touch log/.gitkeep && git add log/.gitkeep

Now the log dirdirectory will be included in the tree,. It is super-useful when deploying, so you won't have to write a routine to make log dirsdirectories.

The logfiles can be kept out by issuing,

echo log/dev.log >> .gitignore

but you probably knew that.

The Rails Way :

mkdir log && touch log/.gitkeep && git add log/.gitkeep

Now the log dir will be included in the tree, super-useful when deploying, so you won't have to write a routine to make log dirs.

The logfiles can be kept out by issuing,

echo log/dev.log >> .gitignore

but you probably knew that

The Ruby on Rails way:

mkdir log && touch log/.gitkeep && git add log/.gitkeep

Now the log directory will be included in the tree. It is super-useful when deploying, so you won't have to write a routine to make log directories.

The logfiles can be kept out by issuing,

echo log/dev.log >> .gitignore

but you probably knew that.

added 163 characters in body
Source Link
Thomas E
  • 3.8k
  • 2
  • 22
  • 13
Loading
Source Link
Thomas E
  • 3.8k
  • 2
  • 22
  • 13
Loading