Finally started Dev.to on my local
Duc Nguyen
Posted on October 7, 2019
My background: working with Java, NodeJS and Frontend for some years and has no Rails experiences
Here are my summaries:
- I have to go with https://docs.dev.to/installation/mac/ , would prefer docker but my current project is using Docker version 17 which through error on the line
FROM node:8.15.1-alpine AS alpine-ruby-node
- It took me an hour to figure out the Postgres role issue with my current OS username.
Here is how to solve:
Login into postgres:
psql --user postgres --password
To list users:
postgres=# \du
To add a user:
postgres=# CREATE ROLE my_current_OS_user WITH LOGIN PASSWORD 'Pa$$w0rd';
And grant createDB privilege:
ALTER ROLE my_current_OS_user CREATEDB
- Register Github Oauth
HomePage URL: http://localhost:3000
Authorization callback URL: http://localhost:3000/users/auth/github/callback
💖 💪 🙅 🚩
Duc Nguyen
Posted on October 7, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.