In order to enable debugging for your Django app running in a Docker container, follow these steps using Visual Studio (Code):
- Add
ptvsdto your requirements.txt file
ptvsd == 4.3.2
- To your
launch.json, add this:
| Resources: | |
| AWSEBAutoScalingGroup: | |
| Metadata: | |
| ? "AWS::CloudFormation::Authentication" | |
| : | |
| S3Auth: | |
| buckets: | |
| - <my-bucket> | |
| roleName: | |
| ? "Fn::GetOptionSetting" |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: Cognito Stack | |
| Parameters: | |
| AuthName: | |
| Type: String | |
| Description: Unique Auth Name for Cognito Resources | |
| Resources: | |
| # Creates a role that allows Cognito to send SNS messages | |
| SNSRole: |
| const fastify = require('fastify')(); | |
| fastify.get('/', (request, reply) => reply.send({ hello: 'world' })); | |
| if (require.main === module) { | |
| // called directly i.e. "node app" | |
| fastify.listen(3000, (err) => { | |
| if (err) console.error(err); | |
| console.log(`server listening on ${fastify.server.address().port}`); | |
| }); |
| export class BaseEnvironment { | |
| env: BaseEnvironment.Env | |
| FirebaseConfig: { | |
| apiKey: string, | |
| authDomain: string, | |
| databaseURL: string, | |
| projectId: string, | |
| storageBucket: string, | |
| messagingSenderId: string | |
| } |
⚠ This post is fairly old. I don't keep it up to date. Be sure to see comments where some people have posted updates
What this will cover
www.website.com to website.comindex.html)| 1) Install ESLint for VS Code (https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) | |
| 2) Add the following settings to VS Code settings: | |
| "[javascript]": { | |
| "editor.tabSize": 4, | |
| "editor.insertSpaces": true | |
| }, | |
| "[vue]": { | |
| "editor.tabSize": 4, | |
| "editor.insertSpaces": true |
| let isRefreshing = false; | |
| let refreshSubscribers = []; | |
| const instance = axios.create({ | |
| baseURL: Config.API_URL, | |
| }); | |
| instance.interceptors.response.use(response => { | |
| return response; | |
| }, error => { |
| a4b.amazonaws.com | |
| access-analyzer.amazonaws.com | |
| account.amazonaws.com | |
| acm-pca.amazonaws.com | |
| acm.amazonaws.com | |
| airflow-env.amazonaws.com | |
| airflow.amazonaws.com | |
| alexa-appkit.amazon.com | |
| alexa-connectedhome.amazon.com | |
| amazonmq.amazonaws.com |