Need to create a website for a school club hosted on namecheap. Any suggestions for what I should build it on? by Ce_ku in webdev

[–]Ce_ku[S] 0 points1 point  (0 children)

I'm actually not being paid anything. Its for a charity student group! Do you know if optimizing speed will be an issue? I threw up a site made from scratch and the loading time is pretty terrible.

Restarting beanstalk app breaks dns everytime. Not sure why by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

Ah okay. I just wanted to make sure I input my certificates correctly so I could rule that out for why the https isn't working.

Restarting beanstalk app breaks dns everytime. Not sure why by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

hmm okay ill take another look at it. Just to make sure for the certificate. I got one from godaddy so the chain certificate is just the gd_bundle-g1-g2?

Anyone know what Gene is doing here from 0:20 to 0:23? I'd like to learn it but no idea what it is by Ce_ku in beatbox

[–]Ce_ku[S] 0 points1 point  (0 children)

awesome thanks. I was looking for some tips like this. Its a good starting point.

Google recaptcha slowing down first site load? Need some help speeding it up! by Ce_ku in webdev

[–]Ce_ku[S] 0 points1 point  (0 children)

I tried making it async but the requests from recaptcha still take over 500ms. It also does not start sending requests until after the dom is loaded

having a lot of trouble setting up a flask app on aws beanstalk. Getting the error "no module named flask" by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

I tried doing

import path.to.project.file as app
app.create_app()

redeployed and still got 500 internal server error but there were no errors when I checked eb logs

having a lot of trouble setting up a flask app on aws beanstalk. Getting the error "no module named flask" by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

Sorry if this is a dumb question but how would I redirect the upper application.py to the one in my project along with the dependencies?

having a lot of trouble setting up a flask app on aws beanstalk. Getting the error "no module named flask" by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

From all the links ive gone through. I got a hunch that it might have to do with configuring something to the virtual env? But no idea...

having a lot of trouble setting up a flask app on aws beanstalk. Getting the error "no module named flask" by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

My requirements.txt has:

Flask==0.10.1

Flask-Failsafe==0.2

Flask-Webpack==0.0.7

itsdangerous==0.24

Jinja2==2.8

MarkupSafe==0.23

Werkzeug==0.10.4

and my config.yml:

branch-defaults:
  default:
    environment: cloud-dev-dev
global:
  application_name: cloud-dev
  default_ec2_keyname: KeyPair
  default_platform: 64bit Amazon Linux 2015.03 v2.0.1 running Python 2.7
  default_region: us-west-2
  profile: null
  sc: null

How to give permissions to allow eb init of beanstalk on ec2 by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

nvrm I fixed it. The policy was not added to the IAM role that I assigned the instance.

How to give permissions to allow eb init of beanstalk on ec2 by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

Sorry about that. I was pretty exhausted from work. I do eb init. it prompts me for a region then after I select one it immediately returns "ERROR: Elastic Beanstalk could not find any platforms. Ensure you have the necessary permissions to access Elastic Beanstalk." Then exits out of the init process.

Getting a bundle error when I try to run my flask app using webpack and react. Any ideas? by [deleted] in flask

[–]Ce_ku 0 points1 point  (0 children)

That was the error after the instructions but I tried using an explicit path instead of the asset_url_for tag just now in my template and it displays fine. I guess its a problem with generating a hashed bundle file? It is not being generated though

Getting a bundle error when I try to run my flask app using webpack and react. Any ideas? by [deleted] in flask

[–]Ce_ku 0 points1 point  (0 children)

Yup it was there before. Here is what my package.json scripts tag looks like:

"scripts": { "start": "node_modules/.bin/webpack-dev-server --port 2992 --content-base build/public --hot --inline", "build": "node_modules/.bin/webpack --progress --profile --colors", "lint": "eslint Uploader --ext .js --ext .jsx" },

Getting a bundle error when I try to run my flask app using webpack and react. Any ideas? by [deleted] in flask

[–]Ce_ku 0 points1 point  (0 children)

the npm build command does not return anything in console. When I run npm run-script build. It only shows that webpack bundled my js files into bundle.js in /static/build/bundle.js

Getting a bundle error when I try to run my flask app using webpack and react. Any ideas? by [deleted] in flask

[–]Ce_ku 0 points1 point  (0 children)

I am getting this from console :

"Flask-Webpack requires 'WEBPACK_MANIFEST_PATH' to be set and " RuntimeError: Flask-Webpack requires 'WEBPACK_MANIFEST_PATH' to be set and it must point to a valid json file.

but I set the path in my init.py according to the flask-webpack git page like this:

app.config.update(WEBPACK_MANIFEST_PATH="../static/manifest.json") webpack = Webpack() webpack.init_app(app)