A³Learn
A³Learn
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
let me know on this, I couldn't get further the ssh command is also unreliable, not copying all the files
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
yes it should be there! Help me understand, if I ssh into the fly server should it be there? Maybe I am misunderstanding some concepts
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
Whoops but then I lost my markdown content, I'm just going to do the ssh way!
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
This compiled/ran!
cp ./src/misc/*.md .wasp/build/sdk/wasp/dist/src/misc/
mkdir -p .wasp/build/sdk/wasp/dist/src/blog/posts
cp ./src/blog/posts/*.md .wasp/build/sdk/wasp/dist/src/blog/posts/
cp ./src/misc/*.md .wasp/build/sdk/wasp/dist/src/misc/
mkdir -p .wasp/build/sdk/wasp/dist/src/blog/posts
cp ./src/blog/posts/*.md .wasp/build/sdk/wasp/dist/src/blog/posts/
`
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
I'm not terribly sure what are the directories again? I saw that 0.16.2 made a small change there too
[ Wasp !] npm warn deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1cp: target '.wasp/build/server/src/blog/posts': No such file or directory
Error: Process completed with exit code 1.
[ Wasp !] npm warn deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1cp: target '.wasp/build/server/src/blog/posts': No such file or directory
Error: Process completed with exit code 1.
Here's something I made for my dev enviroment when I found out that the directory changed stucture
join(process.cwd(), '..','sdk','wasp', 'src', 'blog', 'posts'), // Dev environment
join(process.cwd(), '..','sdk','wasp', 'src', 'blog', 'posts'), // Dev environment
Is it in sdk now?
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
I apoligize Miho! I thought after a hard refresh the image would show up -- apparently not? I went to private mode and the images are there, still here's my github code
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
Uhm! I'm very confused actually -- https://aaalearn.com/blog/ I can't find my image here even though I do see it on localhost For images I didn't do any complex moving or so, they should be on my public/blog/images/ folder For some reason that image is not there and I'm not understanding why
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
I would also like not to ssh into the server! I'm not sure however what the change was that cleaned the .wasp/build folder
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
I mean it's not good practice what I'm doing -- I'm converting a mardown to a page and others would probably do this different and host on cloudflare pages, but here's the solution, maybe it's project specific. as the .wasp/build was cleared and I couldn't find my wasp project in the whole VM - I copied the files
- name: Copy Markdown Files to Fly.io
env:
FLY_API_TOKEN: ${{ secrets.FLY_TOKEN }}
run: |
# Wait for a few seconds to ensure the deployment is complete
sleep 3

# Create temporary directories for both types of files
mkdir -p temp_misc
mkdir -p temp_blog

# Copy the markdown files to their respective temporary directories
cp src/misc/*.md temp_misc/ || true
cp src/blog/posts/*.md temp_blog/ || true

# Create necessary directories on the server
flyctl ssh console -a YOURAPP-server <<-'ENDSSH'
mkdir -p /app/.wasp/build/server/src/misc
mkdir -p /app/.wasp/build/server/src/blog/posts
exit
ENDSSH

# Copy misc markdown files
for file in temp_misc/*.md; do
if [ -f "$file" ]; then
filename=$(basename "$file")
echo "-put ${file} /app/.wasp/build/server/src/misc/${filename}" | flyctl ssh sftp shell -a YOURAPP-server
fi
done

# Copy blog post markdown files
for file in temp_blog/*.md; do
if [ -f "$file" ]; then
filename=$(basename "$file")
echo "-put ${file} /app/.wasp/build/server/src/blog/posts/${filename}" | flyctl ssh sftp shell -a YOURAPP-server
fi
done
shell: bash
- name: Copy Markdown Files to Fly.io
env:
FLY_API_TOKEN: ${{ secrets.FLY_TOKEN }}
run: |
# Wait for a few seconds to ensure the deployment is complete
sleep 3

# Create temporary directories for both types of files
mkdir -p temp_misc
mkdir -p temp_blog

# Copy the markdown files to their respective temporary directories
cp src/misc/*.md temp_misc/ || true
cp src/blog/posts/*.md temp_blog/ || true

# Create necessary directories on the server
flyctl ssh console -a YOURAPP-server <<-'ENDSSH'
mkdir -p /app/.wasp/build/server/src/misc
mkdir -p /app/.wasp/build/server/src/blog/posts
exit
ENDSSH

# Copy misc markdown files
for file in temp_misc/*.md; do
if [ -f "$file" ]; then
filename=$(basename "$file")
echo "-put ${file} /app/.wasp/build/server/src/misc/${filename}" | flyctl ssh sftp shell -a YOURAPP-server
fi
done

# Copy blog post markdown files
for file in temp_blog/*.md; do
if [ -f "$file" ]; then
filename=$(basename "$file")
echo "-put ${file} /app/.wasp/build/server/src/blog/posts/${filename}" | flyctl ssh sftp shell -a YOURAPP-server
fi
done
shell: bash
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
I made a solution, I'll report back tomorrow!
28 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
Yes! 0.16.2 Yes I mean .wasp/build Did you edit the files on the server directly in the build folder? That's not something you should ever do because: No - I was trying to just grab them. I was looking at the .wasp/build and trying to find the markdown files that I would render to make my posts, etc I think now the .wasp/build is somehow being cleared on 0.16.2
28 replies
WWasp
Created by Red_Demon on 2/11/2025 in #🙋questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
Hi the temporary solution is // @ts-nocheck on every page with an error Eventually you should not do that as it's not recommended practice. Essentially these errors come because you are assuming a type and Typescript wants you to be safe. Wasp requires strict:true so a hack would be // @ts-nocheck
28 replies
WWasp
Created by Red_Demon on 2/11/2025 in #🙋questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
hmm are you sure you have wasp 16 installed ?
28 replies
WWasp
Created by NEROX on 2/10/2025 in #🙋questions
public API for Chrome Extension
We should do another community get together
39 replies
WWasp
Created by NEROX on 2/10/2025 in #🙋questions
public API for Chrome Extension
Did you build an extension with a new wasp project or is it an api?
39 replies
WWasp
Created by NEROX on 2/10/2025 in #🙋questions
public API for Chrome Extension
I think his app on product hunt is about SEO, maybe an addon
39 replies
WWasp
Created by NEROX on 2/10/2025 in #🙋questions
public API for Chrome Extension
Dude!!!! You are killing it!
39 replies
WWasp
Created by Sean on 2/10/2025 in #🙋questions
APIs keep returning 404 error
Claude kept on saying it's fine! O3 mini was like uh, it's 3001
30 replies
WWasp
Created by Sean on 2/10/2025 in #🙋questions
APIs keep returning 404 error
Very funny, i have this exact same problem and it took me days to solve. Vinny added the key code here - it's 3001 not 3000
30 replies