2021-03-06 17:06:42 +00:00
|
|
|
import path from 'path'
|
|
|
|
|
2020-11-23 20:45:01 +00:00
|
|
|
export const DB_NAME = 'pinafore_development'
|
|
|
|
export const DB_USER = 'pinafore'
|
|
|
|
export const DB_PASS = 'pinafore'
|
|
|
|
export const DB_PORT = process.env.PGPORT || 5432
|
|
|
|
export const DB_HOST = '127.0.0.1'
|
|
|
|
|
|
|
|
export const envFile = `
|
|
|
|
PAPERCLIP_SECRET=foo
|
|
|
|
SECRET_KEY_BASE=bar
|
|
|
|
OTP_SECRET=foobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobar
|
|
|
|
DB_HOST=${DB_HOST}
|
|
|
|
DB_PORT=${DB_PORT}
|
|
|
|
DB_USER=${DB_USER}
|
|
|
|
DB_NAME=${DB_NAME}
|
|
|
|
DB_PASS=${DB_PASS}
|
2022-05-01 01:34:58 +00:00
|
|
|
BIND=0.0.0.0
|
2020-11-23 20:45:01 +00:00
|
|
|
`
|
2021-01-25 02:26:40 +00:00
|
|
|
|
2022-11-25 19:04:37 +00:00
|
|
|
export const GIT_URL = 'https://github.com/tootsuite/mastodon.git'
|
|
|
|
export const GIT_TAG = 'v3.5.3'
|
|
|
|
|
2022-04-30 21:38:37 +00:00
|
|
|
export const RUBY_VERSION = '3.0.3'
|
2021-03-06 17:06:42 +00:00
|
|
|
|
2021-07-05 03:19:04 +00:00
|
|
|
const __dirname = path.dirname(new URL(import.meta.url).pathname)
|
2021-03-06 17:06:42 +00:00
|
|
|
export const mastodonDir = path.join(__dirname, '../mastodon')
|
|
|
|
|
|
|
|
export const env = Object.assign({}, process.env, {
|
|
|
|
RAILS_ENV: 'development',
|
|
|
|
NODE_ENV: 'development',
|
|
|
|
BUNDLE_PATH: path.join(mastodonDir, 'vendor/bundle'),
|
|
|
|
DB_NAME,
|
|
|
|
DB_USER,
|
|
|
|
DB_PASS,
|
|
|
|
DB_HOST,
|
|
|
|
DB_PORT
|
|
|
|
})
|