advlight

command module
v0.0.0-...-46141d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

Simple Ticket Server for Bayside Christmas Lights

advlight is a Go application, to run in development you need:

  1. Go installed (latest version perferred)
  2. Postgresql installed (latest version perferred)
  3. Create the DB and run seed.sql
  4. Point ADVLIGHT_DATABASE_URL env to DB

Production:

# package assets & compile
go-bindata -o views/assets/bindata.go -pkg assets wwwroot/...
GOOS=linux go build advlight.go

# scp to prod with foolling env setup
ADVLIGHT_DATABASE_URL=[db_url]
ADVLIGHT_ENV=production
ADVLIGHT_SMTP=[username,password,host,port]
ADVLIGHT_GAID=[captcha] # run with -nocaptcha flag to bypass captcha in dev
ADVLIGHT_RECAPTCHA_SECRET=[captcha]

# current deploy procedure
scp advlight bcatickets.blit.com:advlight_update
ssh bcatickets.blit.com '~/advlight_deploy'

# copy production db
ssh -C bcatickets.blit.com "/usr/local/pgsql/bin/pg_dump -C -hlocalhost -Upostgres --no-owner --no-privileges advlight" | psql advlight
# dumb guests as csv
ssh bcatickets.blit.com "psql -hlocalhost -Upostgres advlight -c \"COPY (select * from guests) TO STDOUT WITH CSV\""

LICENSE

All the files in this distribution are copyright (c) 2017 Blit, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL