To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / deploy / provision.d / 070-secret-token.sh @ 1600:ed9c467ef922

History | View | Annotate | Download (202 Bytes)

1 1577:e38eee2e1d47 Chris
#!/bin/bash
2
3
set -e
4
5 1589:94669513c53c Chris
# Create a session token if it hasn't already been created.
6
7 1577:e38eee2e1d47 Chris
cd /var/www/code
8
9 1589:94669513c53c Chris
if [ ! -f config/initializers/secret_token.rb ]; then
10
    bundle exec rake generate_secret_token
11
fi
12