Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hitchhicker/photoapp
https://github.com/hitchhicker/photoapp
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hitchhicker/photoapp
- Owner: hitchhicker
- Created: 2017-04-09T12:02:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T21:01:57.000Z (over 7 years ago)
- Last Synced: 2024-10-20T07:49:19.851Z (19 days ago)
- Language: CSS
- Size: 2.65 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Docker set-up
1. docker build -t photoapp .
2. ./run.sh -s [port]
3. remove container : ./run.sh -r
4. [Optional] ./run.sh -d [port]
## Debug
* OS X:
* docker-machine ip -> get \[ip\]
* \[ip\]:[port]
* Ubuntu:
* localhost:[port]
## Log
* Server log
* tail -f logs/error.log
* Flask log
* docker logs [Container ID]
## Unit Test
* ./run.sh -t
## PostgreSQL Debug
1. ./run.sh -d [port]-> Enter into docker container
2. /etc/init.d/postgresql start
3. sudo su postgres
4. psql
5. \c photoapp -> jump to database
6. \d -> display all tables