mv config/tc_api.{sample-,}dev.yml
- create a postgresql db, user.
- Also enable the following Pgsql extensions.
- This will go away eventually. But for now..
$POSTGRES_USER
needs to be able to enable extensions on$TCELFER_DB
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$TCELFER_DB" <<-EOSQL CREATE EXTENSION "uuid-ossp"; EOSQL
- Also enable the following Pgsql extensions.
- set creds in
config/tc_api.ENV.yml
bundle install
bundle exec rackup
- Acquire certificate files (LetsEncrypt maybe?)
TCAPI_SSL_KEY=path/to/privkey.pem TCAPI_SSL_CERT=path/to/fullchain.pem bundle exec puma