Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update local-ide-remote-docker.md #293

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/local-ide-remote-docker.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Deploy

1. [Setup dropbox on remote machine](https://training.shoppinpal.com/setup-box-on-azure/setup-dropbox-on-azure.html)
1. On your remote machine, execute the instructions from the [Deploy](https://github.com/ShoppinPal/warehouse#deploy) section above.
1. On remote, setup the following env variables:

```
Expand Down Expand Up @@ -64,7 +63,7 @@
dropbox exclude add $SYNC_DEV_HOME/$WAREHOUSE_SYNC_DIR_NAME/warehouse-workers/.git && \
dropbox exclude add $SYNC_DEV_HOME/$WAREHOUSE_SYNC_DIR_NAME/warehouse-workers/node_modules
```
1. On remote, check if they are now excluded, use `dropbox exclude list | grep remote-dev`
1. On remote, check if they are now excluded, use `dropbox exclude list | grep $SYNC_DEV_HOME/$WAREHOUSE_SYNC_DIR_NAME`
* if an incorrect path was excluded, you can fix it with: `dropbox exclude remove /the/path`
* for example, if you decide to sync the `.git` folder over to your local then un-exclude it with: `dropbox exclude remove $SYNC_DEV_HOME/$WAREHOUSE_SYNC_DIR_NAME/.git`
1. On remote, wire up your project root to be synced via Dropbox:
Expand Down Expand Up @@ -106,13 +105,13 @@
echo WAREHOUSE_SYNC_DIR_NAME=$WAREHOUSE_SYNC_DIR_NAME && \
echo SLAVE_WAREHOUSE_HOME = $SLAVE_WAREHOUSE_HOME
```
* Optionally, you can create and save a `setupenv_slave.sh` file for reuse in future sessions but do not commit it:
* Optionally, you can create and save a `setenv_slave.sh` file for reuse in future sessions but do not commit it:

```
#!/bin/sh

echo "###"
echo Its best to invoke this script as: '. ./setupenv_slave.sh' rather than './setupenv_slave.sh'
echo Its best to invoke this script as: '. ./setenv_slave.sh' rather than './setenv_slave.sh'
echo "###"

export SYNC_DEV_HOME=`echo ~/Dropbox/remote-dev` && \
Expand Down