Site: Vue Netlify Fauna
I’m following the example from Build a serverless CRUD app with authentication using Vue.js Netlify and FaunaDB - DEV Community 👩💻👨💻 and successfully deployed the example by using the button on the webpage.
I am now attempting to run this locally. My macbook is set up so that all the development resources are run through docker. That is, I do not have “node” on the mac, I start a docker instance to do development. This is generally working for other projects when I do “npm run serve”, for example.
On this project, however, I get the following:
much webpack output....
App running at:
- Local: http://localhost:8080/
It seems you are running Vue CLI inside a container.
Access the dev server via http://localhost:<your container's external mapped port>/
Note that the development build is not optimized.
To create a production build, run npm run build.
so, that looks normal and like all my other vue projects. However, the port is not working and dots keep printing to the terminal like it is still doing something:
Note that the development build is not optimized.
To create a production build, run npm run build.
............................................
And they will continue to print until I ctrl-C.
I’m guessing that there is either a login step I’m missing or a port that needs to be opened up but I’m not sure where to look.
Here are my docker files:
# Dockerfile
FROM node:14.11.0
RUN mkdir /srv/app && chown node:node /srv/app
# TODO-PER: There are known build problems using the latest version.
RUN npm install netlify-cli@2.45 -g
USER node
WORKDIR /srv/app
#docker-compose.yml
version: '3.7'
services:
app:
image: fauna-starter
build: .
environment:
- "CMD=${CMD}"
- "FAUNADB_SERVER_SECRET=${FAUNADB_SERVER_SECRET}"
container_name: fauna-starter
command: npm ${CMD}
volumes:
- .:/srv/app
- ./node_modules:/srv/app/node_modules
ports:
- "8080:8080"
And I’m starting it with:
CMD="" FAUNADB_SERVER_SECRET=my-secret docker-compose run --rm app sh
Then in the container:
npm install
npm start
Thanks for any suggestions.