For running this in production, we recommend our docker image, see our compose file.
For development, we have included a sample compose file that builds the image locally
and loads the secrets from the secrets folder.
docker-compose up --buildIf you don't want to use Docker for whatever reason, you're able to run it from source in both cases:
sudo apt install ruby ruby-dev build-essential git bundler
cd src
bundle config set --local path '../vendor/bundle'
bundle install # this installs the dependencies
bundle exec smashing start # this starts the applicationThis manual method also expects the secrets to be located in the secrets folder.
You might want to set RACK_ENV to production.
For all widgets to work, you'll need to acquire a few secrets:
TWITTER_CONSUMER_KEYTWITTER_CONSUMER_SECRETTWITTER_ACCESS_TOKENTWITTER_ACCESS_TOKEN_SECRET
For a production environment you should also add:
SENTRY_DSNDASHING_AUTH_TOKEN
Check out https://smashing.github.io/ for more information.