| runme |
|
|---|
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/nullSet 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/"
} >> .envStart your platform project
cd ../platform
yarn rw devCreate a dev playground in your database
cd ../platform
yarn rw exec playgrounds/devRun the project to support https
npm run dev:httpsIf 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/443From now on, you should use authbind to run Redwood
authbind --deep yarn rw dev