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

remix grunge stack aws #179

Open
riadraz opened this issue Dec 17, 2023 · 4 comments
Open

remix grunge stack aws #179

riadraz opened this issue Dec 17, 2023 · 4 comments

Comments

@riadraz
Copy link

riadraz commented Dec 17, 2023

Have you experienced this bug with the latest version of the template?

npx create-remix@latest --template remix-run/grunge-stack

Steps to Reproduce

HP-ProBook-450-G3:~$ npx create-remix@latest --template remix-run/grunge-stack
(node:24084) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)

remix v2.4.0 💿 Let's build a better website...

dir Where should we create your new project?
./remixawstest

Expected Behavior

Setup finishes without errors. Go ahead..

Actual Behavior

  ◼  Template: Using remix-run/grunge-stack...
  ✔  Template copied

git Initialize a new git repository?
Yes

deps Install dependencies with npm?
Yes

init This template has a remix.init script. Do you want to run it?
Yes

██████ Dependencies installing with npm...

  ▲  Oh no! Failed to install dependencies.
@cypherpower
Copy link

I have a pull request submitted that will fix this but meanwhile you can update your package.json to use vite: ^5.0.0 instead of ^4.5.0

@riadraz
Copy link
Author

riadraz commented Jan 4, 2024

yes i edited the vite verion to 5.0.0 before running npm install and it worked fine with all test passed. This have fixed all github action workflow error and failed to deployment reason too. I am getting another one after deploying in aws that is ... INTERNAL SERVER ERROR ..

@riadraz
Copy link
Author

riadraz commented Jan 5, 2024

I have a pull request submitted that will fix this but meanwhile you can update your package.json to use vite: ^5.0.0 instead of ^4.5.0

if any help about internal server error after deploying in aws, on hitting the url got from deployment work flow.

@riadraz
Copy link
Author

riadraz commented Jan 7, 2024

okI evetually deployed grunge stack in aws. I constantly got "Internal server error" .

The steps are:

Before running the :
npx arc env --add --env staging ARC_APP_SECRET $(openssl rand -hex 32)
npx arc env --add --env staging SESSION_SECRET $(openssl rand -hex 32)
npx arc env --add --env production ARC_APP_SECRET $(openssl rand -hex 32)
npx arc env --add --env production SESSION_SECRET $(openssl rand -hex 32)

Did this:
make sure your secret variaabls (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY) are same both in your CLI ["aws configure" command will ask for those keys and you have to get it from aws IAM user first.. ] , github and aws then run the 4 line command and commit it to github. Deploy.yml will work and make cloud formation. you get the link in deploy workflow under production

Fork it and make your own template : https://github.com/fintech-jpbd/remix-grunge-stack-jpnbd.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants