The tee -a
command will append changes to a file (just like to >>
). The -a
flag stands for "append".
echo "some text" | sudo tee -a write-protected.txt
find . -type f -exec file --mime {} \; | grep -v us-asci |
You probably don't want Google crawling your development staging app. Here's how to fix that.
$ mv public/robots.txt config/robots.production.txt
$ cp config/robots.production.txt config/robots.development.txt
Now edit config/routes.rb
to add a route for /robots.txt
, and add the controller code.
There are two programs:
You can list the commands of the docker client by typing docker
with no arguments.
You can use container images which have been created by other people. You find them online in the docker index. You can search for images using docker search [keywords]
.
# A sample Gemfile | |
source "https://rubygems.org" | |
gem "activerecord" | |
gem "sqlite3" |