Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 1.49 KB

File metadata and controls

63 lines (45 loc) · 1.49 KB
runme
id version
01JDR0YPN9J06QT9CNP227H532
v3

Map localhost.runme.dev to your localhost IP address in your hosts file.

echo "127.0.0.1   localhost.runme.dev" | sudo tee -a /etc/hosts > /dev/null

Set the following variables to the appropriate values for your system, here's an example for staging:

{
  echo "CLOUD_API_BASE_URL=http://localhost:4000"
  echo "NEXT_PUBLIC_AUTH0_DOMAIN=stateful-staging.us.auth0.com"
  echo "NEXT_PUBLIC_AUTH0_CLIENT_ID=ttOYnmnhxtD4pVhBksH4XUDvjxerKaCw"
  echo "NEXT_PUBLIC_AUTH0_AUDIENCE=https://staging.us-central1.stateful.com/"
} >> .env

Start your platform project

cd ../platform

yarn rw dev

Create a dev playground in your database

cd ../platform

yarn rw exec playgrounds/dev

Run the project to support https

npm run dev:https
Instructions for Linux

If you're on Linux, you've to configure authbind to allow the server to bind to port 443. Run the following commands:

sudo apt-get install authbind
sudo touch /etc/authbind/byport/80
sudo touch /etc/authbind/byport/443

sudo chmod 500 /etc/authbind/byport/80
sudo chmod 500 /etc/authbind/byport/443

From now on, you should use authbind to run Redwood

authbind --deep yarn rw dev