|
30 | 30 | * PowerShell |
31 | 31 | * Python Intellisense |
32 | 32 | * VSCode Action Buttons |
33 | | - * rust-lang |
| 33 | + * Rust-Lang |
34 | 34 | * **Google Drive Upload** |
35 | 35 | * **Languages Installed :**<br><br> |
36 | 36 | []() []() []() []() []() []() []() []() []() []() []() []() []() []() []() []() []() |
37 | 37 |
|
38 | 38 | ## **Environment Variables :** |
39 | | -| CS_VERSION | 3.11 | |
| 39 | +| CS_VERSION | 3.11.0 | |
40 | 40 | |:-:|:-:| |
41 | 41 | | AUTH_TYPE | Code-Server login type: {password, none} | |
42 | 42 | | PASSWORD | Code-Server login password (If AUTH_TYPE=password) | |
|
47 | 47 |
|
48 | 48 | ## **Installation :** |
49 | 49 | * **For Heroku Users :** |
50 | | - * Fork this repo. |
51 | | - * Create new app on heroku. |
52 | | - * **Setting up google drive (do the following on local pc) :** |
53 | | - * [ ! ] If you don't want this feature then don't assign any value to ```DRIVE_ACCESS``` variable. |
54 | | - * [Follow this](https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_id_and_client_secret) & get your ```client_secret.json``` file. |
55 | | - * Add Drive API to the project from [here](https://console.cloud.google.com/apis/library), select the same project made in the above step if needed. |
56 | | - * Clone/Download [this repo](https://github.com/apoorvvyavahare/gdrive-upload). |
57 | | - * Install Python-3 & install all the requirements via [CLONED/DOWNLOADED REPO]/requirements.txt |
58 | | - * Now paste your ```client_secret.json``` file into the [CLONED/DOWNLOADED REPO] folder. |
59 | | - * Open a terminal in the repo folder and run the upload.py: |
60 | | - * ```python3 upload.py -i upload.py -f "CodeServer Saves" --noauth_local_webserver``` |
61 | | - * Copy the URL from the terminal & paste it into browser. |
62 | | - * Login with your account, accept all the terms, get the success key. |
63 | | - * Paste it into the terminal & wait for the success message. |
64 | | - * Now check your drive for ```CodeServer Saves``` folder and a ```upload.py``` file inside it. |
65 | | - * If its not there, run ```python3 upload.py -i upload.py -f "CodeServer Saves"```, now check in drive. |
66 | | - * Now go [here](https://bashupload.com) and upload your ```drive-access.json``` from ```[CLONED/DOWNLOADED REPO]/.credentials/drive-access.json```. |
67 | | - * Now copy the download link & paste it into the ```DRIVE_ACCESS_URL``` in ```Dockerfile.heroku``` of your forked repo and save it. |
68 | | - * [ ! ] Download link is a single download link, so repeat from the file upload process if you re-deploy the project. |
69 | | - * Now hit the Heroku Deploy button on the forked repo's readme. |
| 50 | + * Hit the Heroku Deploy button on the forked repo's readme. |
70 | 51 | * [ ! ] Set ```AUTH_TYPE``` value to ```none``` if you dont want any login password prompt. |
71 | 52 | * **For Non-Heroku Users :** |
72 | | - * **Setting up google drive (do the following on local pc) :** |
73 | | - * [ ! ] If you don't want this feature then don't assign any value to ```DRIVE_ACCESS``` variable in the run command. |
74 | | - * [Follow this](https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_id_and_client_secret) & get your ```client_secret.json``` file. |
75 | | - * Add Drive API to the project from [here](https://console.cloud.google.com/apis/library), select the same project made in the above step if needed. |
76 | | - * Clone/Download [this repo](https://github.com/apoorvvyavahare/gdrive-upload). |
77 | | - * Install Python-3 & install all the requirements for the cloned repo via requirements.txt |
78 | | - * Now paste your ```client_secret.json``` file into the repo folder. |
79 | | - * Open a terminal in the repo folder and run the upload.py: |
80 | | - * ```python3 upload.py -i upload.py -f "CodeServer Saves" --noauth_local_webserver``` |
81 | | - * Copy the URL from the terminal & paste it into browser. |
82 | | - * Login with your account, accept all the terms, get the success key. |
83 | | - * Paste it into the terminal & wait for the success message. |
84 | | - * Now check your drive for ```CodeServer Saves``` folder and a ```upload.py``` file inside it. |
85 | | - * If it's not there, run ```python3 upload.py -i upload.py -f "CodeServer Saves"```, now check in drive. |
86 | | - * Now copy the ```drive_access.json``` from ```[CLONED/DOWNLOADED REPO]/.credentials/drive-access.json``` to your system where you want to run code-server. |
87 | 53 | Edit & Run Command : |
88 | 54 | ``` |
89 | 55 | docker run --name code-server \ |
|
92 | 58 | -e CODESERVER_PORT="9870" \ |
93 | 59 | -e NGROK_TOKEN="<YOUR NGROK TOKEN>" \ |
94 | 60 | -d -p 8080:9870 vital987/code-server && \ |
95 | | - docker cp <path to drive_access.json> code-server:/app/.credentials |
96 | 61 | ``` |
97 | 62 | [ ! ] Set ```AUTH_TYPE``` value to ```none``` if you dont want any login password prompt. |
98 | 63 |
|
|
103 | 68 | * **↻** : Refresh the buttons. |
104 | 69 | * **ClearWorkspace :** Deletes all the folders in workspace directory. |
105 | 70 | * **ResetWorkspace :** Resets the workspace folder with all sample files. |
106 | | - * **DriveUpload :** Archive workspace directory (excluding sample files) and upload to google drive. |
107 | 71 | * [ ! ] The buttons need to be refreshed everytime after use. |
108 | 72 |
|
109 | 73 | ## **Screenshots :** |
|
112 | 76 |
|
113 | 77 | ## **Credits :** |
114 | 78 | * **Coder** : [Website](https://coder.com), [Github](https://github.com/cdr) |
115 | | - * **Me of course!** : [Github](https://github.com/vital987) |
| 79 | + * **vital987** : [Github](https://github.com/vital987) |
| 80 | + * **nv2k3** : [Github](https://github.com/nv2k3) |
0 commit comments