Skip to content

Commit 1eed7aa

Browse files
authored
Add M1 support and update README (#659)
* Add M1 support * README improvements
1 parent 68fad69 commit 1eed7aa

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ backend/dump
77
dump.rdb
88
.rbenv-gemsets
99

10-
.idea/*
10+
.idea/*
11+
.bundle
12+
frontend/.env

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ npm install
6161

6262
## Running / Development
6363

64+
### General
65+
It is necessary to populate environment parameters. You can take `backend/env-example` and add it to a new file in `backend/.env` and `frontend/.env`. You'll need to create a [Facebook dev app](https://developers.facebook.com/docs/development/create-an-app) and paste your own ID the frontend env file's `FACEBOOK_APP_ID` parameter. This is not necessary in the backend env but we have not yet cleaned up these two files into the necessary components.
66+
6467
### Docker
6568

6669
From the project root:
@@ -104,6 +107,8 @@ Addons are used for Heroku Postgres, Heroku Redis, Heroku Scheduler + Papertrail
104107

105108
### 🎨 [Figma Assets](https://www.figma.com/proto/MBVn73pD6JbBkxd65KSZHr/Flaredown-Guide?page-id=0%3A1&node-id=1%3A3&viewport=241%2C48%2C0.45&scaling=contain&starting-point-node-id=1%3A3)
106109

110+
## Common Problems
111+
* On first load, the app displays a blank beige screen instead of the login screen. Temporary fix is to add `console.log(process.env.FACEBOOK_APP_ID)` right inside of the module.exports at the top of the `frontend/config/environment.js` file. You can then refresh the page (no need to kill Docker) and this should fix it. You can now remove the log.
107112

108113
## License
109114
Copyright 2015-2017 Logan Merriam and contributors.

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ services:
4141
profiles:
4242
- tunnel
4343
frontend:
44+
platform: linux/amd64
4445
build: frontend
4546
depends_on:
4647
- backend

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.22.6
1+
FROM --platform=linux/amd64 node:12.22.6
22

33
# Force npm version 7
44
RUN npm i -g npm@7

0 commit comments

Comments
 (0)