When a FarmData2 Development Environment is run in GitPod you will use your browser to connect to the Linux-based desktop with your browser.
If you run into problems during the install visit the dedicated install stream on the FarmData2 Zulip chat. Use the search feature to see of others have had and solved the problem you are experiencing. If you do not find a solution, post a summary of your problem and the community will help.
Use the following steps to create a FarmData2 Development Environment in a GitPod workspace:
- Sign up for a free GitPod account.
- Use your GitHub credentials to log in.
- The free account provides 50 hours/week of usage. More hours can be purchased at a reasonable rate.
- Use your GitHub credentials to log in.
- Visit the GitPod Preferences page.
- Under "New Workspaces," set the "default editor" to be "Terminal,"
- Under "Timeouts," set the "Default Workspace Timeout" to be 10m.
- This will automatically shut down your workspace after 10 minutes of inactivity and will prevent you from wasting your free hours.
- Fork the upstream FarmData2 repository in GitHub.
- Copy the URL of your fork. This URL should have your GitHub username in it.
- Visit the new GitPod workspace page and paste the URL of your FarmData2 fork into the "Select a repository" search box and click the search result.
- Click "Continue."
- After about 2-5 minutes a terminal window will open in your browser. This document will call this terminal the GitPod Terminal.
- The GitPod Terminal will display information about starting the FarmData2 Development Environment, including about "Starting containers."
- After another 2-3 minutes the containers will have started and the GitPod Terminal will display information about how to connect to the FarmData2 Development Environment.
You can connect to the FarmData2 Development Environment in two ways:
- Connect by using your web browser by clicking the
httpslink given in the output and then clicking the "Connect" button on the page that appears. See the Connect Using Your Web Browser section for more information. - To connect by using a VNC client:
- Visit Gitpod's guide to create a SSH key and follow the instructions to create and upload a SSH key to Gitpod. This step only needs to be completed once.
- Then, follow the instructions in the GitPod Terminal output. See the Connect Using a VNC Client section for more information.
- Connect by using your web browser by clicking the
- Follow the directions to Setup the FarmData2 Development Environment
- Visit your GitPod workspaces
- Your "farmdata2" workspace will appear here with a green dot to its left, indicating that the workspace is running.
- Click the three vertical dots to the right of your farmdata2 workspace.
- Select "Pin" - this will keep your workspace from being deleted if inactive for two weeks.
- Click the three vertical dots again.
- Select "Stop" - this will shutdown your workspace and close the FarmData2 Development Environment as well.
The FarmData2 Development Environment will restart much faster after you have created the GitPod workspace.
To restart the Development Environment:
- Visit your GitPod workspaces.
- Click the three vertical dots to the right of your "farmdata2" workspace."
- Select "Open"
- Follow the instructions to connect to the FarmData2 Development Environment in your browser or by using a VNC client.
- When you are done working:
- Push the branch you are working on to your GitHub as a backup.
- Stop the your farmdata2 workspace by using one of the following methods:
- Visit your GitPod workspaces, click the three vertical dots to the right of your farmdata2 workspace and select "stop."
- Type
gp stopin the GitPod Terminal.