Mikescops / pixelswap

๐Ÿ“– PixelSwap Blog
https://pixelswap.fr/
0 stars 0 forks source link

Deploy PHP websites as static on Netlify | PixelSwap #1

Closed utterances-bot closed 11 months ago

utterances-bot commented 6 years ago

Deploy PHP websites as static on Netlify | PixelSwap

Netlify is an awesome service that lets you do continuous integration using git. Each time you push commits, the service gets the changes and rebuild your โ€ฆ

https://pixelswap.fr/entry/deploy-php-websites-as-static-on-netlify

Mikescops commented 6 years ago

First comment using utterances ! :D

TheReyzer commented 5 years ago

Awesome, please, create a tutorial explaining tรด How to make a system comments with GitHub, type this! Please rsrs

OnlinePage commented 4 years ago

Hey thanks first for posting this ! I have one question , can i run sitecake cms using this code on netlify , i badly need that . Please help

Mikescops commented 4 years ago

From your question @OnlinePage, static content generator CMS like Hugo, Jekyll or Gatsby can be used on Netlify but there are not made out of PHP. Maybe @olivedev solution can be interesting for you if you want to stick with PHP.

aman-raza commented 3 years ago

Its 2021 : {

Mikescops commented 3 years ago

What's the issue @aman-raza ?

codeqasim commented 3 years ago

Hello Mike awesome experiement but we could not load the assets link css js and images files can you share what is the possibility of that please ?

Mikescops commented 3 years ago

Hi @qaxim, I recommend taking a look at my demo project: https://github.com/Mikescops/ad.min And if you need help, share with me a demo code from your side that is not working :)

codeqasim commented 3 years ago

Hello @mikescops I have checked your code already it does have the assets included you are using CDN bootstrap assets. is there any possibility to use local assets ?

Mikescops commented 3 years ago

I also use a custom.css file!

<!-- Custom styles for this template -->
<link href="custom.css" rel="stylesheet">
codeqasim commented 3 years ago

Hello @Mikescops thank you very much for your response. but thats not the problem we already did that the problem is images css and js files are not being loaded because of the path I think.

You check this please https://nevcore.com/

its returning 404 as not found here you can see the asset css URL https://nevcore.com/css/solid.css

Mikescops commented 3 years ago

Well for sure you're missing some images in your directories, at least all the sm ones :

https://nevcore.com/img/effect-architecture/sm/layer_4.png doesn't exist https://nevcore.com/img/effect-architecture/md/layer_4.png exists

XavSmadja commented 3 years ago

Hi @Mikescops, I can't do the deployement, I don't understand why... I have this result : 3:33:04 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 3:33:04 PM: 1. Build command from Netlify app
3:33:04 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 3:33:04 PM: โ€‹ 3:33:04 PM: $ ./build.sh 3:33:04 PM: bash: ./build.sh: Permission denied 3:33:04 PM: โ€‹ 3:33:04 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 3:33:04 PM: "build.command" failed
3:33:04 PM: โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 3:33:04 PM: โ€‹ 3:33:04 PM: Error message 3:33:04 PM: Command failed with exit code 126: ./build.sh 3:33:04 PM: โ€‹ 3:33:04 PM: Error location 3:33:04 PM: In Build command from Netlify app: 3:33:04 PM: ./build.sh 3:33:04 PM: โ€‹ 3:33:04 PM: Resolved config 3:33:04 PM: build: 3:33:04 PM: command: ./build.sh 3:33:04 PM: commandOrigin: ui 3:33:04 PM: publish: /opt/build/repo/public_html 3:33:04 PM: publishOrigin: ui

Mikescops commented 3 years ago

@XavSmadja Hey there, my first go-to would be that your .sh file must be executable, chmod +x build.sh.

Favourz1 commented 1 year ago

Hello @Mikescops.

As stated earlier. My images, css, js files are also not being loaded.

Live site: https://favourz-admin-dashboard.netlify.app/

Folder structure:
css/ js/ assets/ page.php page.php build.sh .... ....

I would have linked the repo but its a private one.

What can i do to resolve this error?