I thought the ? matches zero or one occurrence of a pattern. However in
this example:
def show_regexp(string, pattern)
match = pattern.match(string)
if match
"#{match.pre_match}->#{match[0]}<-#{match.post_match}"
else
"no match"
end
end
a = "The moon is made of cheese"
show_regex
I have a production server and a staging server and a production git
branch and a staging git branch for the same repository on github. The
production git branch and staging git branch are identical. I got my
staging server running and during the second deploy, something unexpected
started hap
I have the production and staging site on two different server ips. But the
database, another server ip, is the same database used by both production
and staging. When i set up the capistrano deploy task for both the
production and staging, should I keep the db role in deploy.rb like this:
depl
3 matches
Mail list logo